From 85ed08a3d2b904e0d267c53f0191a543130d45a5 Mon Sep 17 00:00:00 2001 From: John Doty Date: Fri, 26 Jun 2015 07:26:39 -0700 Subject: [PATCH] No tabs in makefiles, dirs is a makefile --- .emacs.d/core.el | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.emacs.d/core.el b/.emacs.d/core.el index 9d49f40..fbfd365 100644 --- a/.emacs.d/core.el +++ b/.emacs.d/core.el @@ -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"