;: -*- emacs-lisp -*-
;:* $Id: c-mode-sy.el,v 1.1 2003-10-17 23:21:01+10 steve Exp steve $
(eval-when-compile
  (require 'c-comment-edit))

(setq c-comment-leader "  ")

;:*=======================
;:* Special style for Linux source files
(defun linux-c-mode ()
  "C mode with adjusted defaults for use with the Linux kernel.

Key-bindings:
\\{c-mode-map}"
  (c-mode)
  (c-set-style "linux")
  (setq mode-name "Linux"))

(unless (member '("/usr/src/linux.*/.*\\.[ch]$" . linux-c-mode) auto-mode-alist)
  (add-to-list 'auto-mode-alist '("/usr/src/linux.*/.*\\.[ch]$" . linux-c-mode)))

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
(message "C mode initialised.")

Created with XEmacs Valid HTML 4.01! Valid CSS!
Copyright © 2003 Steve Youngs
Verbatim copying and distribution is permitted in any medium, providing this notice is preserved.
Last modified: Sat Oct 18 02:01:28 EST 2003