chiark / gitweb /
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 1d902a6178be53d359e2265564250e0d417d4203..f6290cc158791a164591bdf58caaa343acc37bee 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 4b53771e088918df3e458fab42889638dc46c258..6d9e2f073ed5e5e705742edbe91f2b7c2ebf0fef 100644 (file)
@@ -1432,17 +1432,6 @@ (let ((dollar (make-glyph-code ?$ 'mdw-ellipsis-face))
 ;;;--------------------------------------------------------------------------
 ;;; 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)