From da6946a313fa4a79c368877261b68aa8db36d9cb Mon Sep 17 00:00:00 2001 Message-Id: From: Mark Wooding Date: Thu, 28 Apr 2016 13:02:51 +0100 Subject: [PATCH] dot/emacs, el/dot-emacs.el: Abolish the `Linux C Mode' stuff. Organization: Straylight/Edgeware From: Mark Wooding I'll use `.dir-locals.el' instead of this cruft. --- dot/emacs | 2 -- el/dot-emacs.el | 11 ----------- 2 files changed, 13 deletions(-) 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) -- [mdw]