No tabs in makefiles, dirs is a makefile

This commit is contained in:
John Doty 2015-06-26 07:26:39 -07:00
parent b4310dc3bc
commit 85ed08a3d2

View file

@ -313,8 +313,16 @@
(add-to-list 'auto-mode-alist '("\\.h\\'" . c++-mode))
(add-to-list 'auto-mode-alist '("\\.w\\'" . c++-mode))
(defun my-makefile-hook ()
(setq-local indent-tabs-mode nil) ;; Makefiles haven't needed tabs for a long time.
)
(add-hook 'makefile-mode-hook 'my-makefile-hook)
(add-to-list 'auto-mode-alist '("makefile" . makefile-mode))
(add-to-list 'auto-mode-alist '("sources" . makefile-mode))
(add-to-list 'auto-mode-alist '("dirs" . makefile-mode))
;; My c-mode stuff:
(c-add-style "ms-c"