dot/emacs, el/dot-emacs.el: Abolish the `Linux C Mode' stuff.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 28 Apr 2016 12:02:51 +0000 (13:02 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 28 Apr 2016 12:17:51 +0000 (13:17 +0100)
I'll use `.dir-locals.el' instead of this cruft.

dot/emacs
el/dot-emacs.el

index 1d902a6..f6290cc 100644 (file)
--- a/dot/emacs
+++ b/dot/emacs
                          "\\)$")
                 . text-mode)
                ("\\.calc?$" . apcalc-mode)
-               ("/src/linux/.*\\.\\(c\\|h\\|cc\\)$" . linux-c-mode)
                ("/\\(s\\|sh\\)/" . arm-assembler-mode)
                ("\\.\\(cmd\\|exec\\|rexx\\)$" . rexx-mode)
                ("\\.st$" . smalltalk-mode)
   (add-hook 'c-mode-hook 'mdw-fontify-c-and-c++ t)
   (add-hook 'objc-mode-hook 'mdw-fontify-c-and-c++ t)
   (add-hook 'c++-mode-hook 'mdw-fontify-c-and-c++ t)
-  (add-hook 'linux-c-mode-hook #'(lambda () (setq c-basic-offset 8)))
   (add-hook 'asm-mode-hook 'mdw-fontify-asm t)
   (add-hook 'go-mode-hook 'mdw-fontify-go t)
   (add-hook 'rust-mode-hook 'mdw-fontify-rust t)
index 4b53771..6d9e2f0 100644 (file)
@@ -1432,17 +1432,6 @@ doesn't match any of the regular expressions in
 ;;;--------------------------------------------------------------------------
 ;;; C programming configuration.
 
-;; Linux kernel hacking.
-
-(defvar linux-c-mode-hook)
-
-(defun linux-c-mode ()
-  (interactive)
-  (c-mode)
-  (setq major-mode 'linux-c-mode)
-  (setq mode-name "Linux C")
-  (run-hooks 'linux-c-mode-hook))
-
 ;; Make C indentation nice.
 
 (defun mdw-c-lineup-arglist (langelem)