From: Mark Wooding Date: Thu, 28 Apr 2016 12:02:51 +0000 (+0100) Subject: dot/emacs, el/dot-emacs.el: Abolish the `Linux C Mode' stuff. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/profile/commitdiff_plain/da6946a313fa4a79c368877261b68aa8db36d9cb dot/emacs, el/dot-emacs.el: Abolish the `Linux C Mode' stuff. I'll use `.dir-locals.el' instead of this cruft. --- diff --git a/dot/emacs b/dot/emacs index 1d902a6..f6290cc 100644 --- a/dot/emacs +++ b/dot/emacs @@ -663,7 +663,6 @@ "\\)$") . 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) @@ -784,7 +783,6 @@ (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) diff --git a/el/dot-emacs.el b/el/dot-emacs.el index 4b53771..6d9e2f0 100644 --- a/el/dot-emacs.el +++ b/el/dot-emacs.el @@ -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)