(eval-when-compile
(require 'c-comment-edit))
(setq c-comment-leader " ")
(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.")
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