summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franckcuny@gmail.com>2016-08-04 15:46:42 -0700
committerFranck Cuny <franckcuny@gmail.com>2016-08-04 15:46:42 -0700
commit883ddc6d1453d9c7b65639070ed20e456002be7e (patch)
treec76c8b9d7d82740e7128967d60dd630e5154defd
parent[emacs] fix the configuration for org-mode (diff)
downloademacs.d-883ddc6d1453d9c7b65639070ed20e456002be7e.tar.gz
[emacs] Add configuration for Makefile
Closes #12.
-rw-r--r--emacs.d/init.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/emacs.d/init.el b/emacs.d/init.el
index 5a2430c..e154fb9 100644
--- a/emacs.d/init.el
+++ b/emacs.d/init.el
@@ -133,6 +133,14 @@
                 (set-fill-column 72)
                 (flyspell-mode))))
 
+(use-package make-mode
+  :config
+  (add-hook 'makefile-mode-hook
+            #'(lambda ()
+                (setq whitespace-style '(face trailing tabs))
+                (setq tab-width 2)
+                (whitespace-mode))))
+
 (use-package markdown-mode
   :commands (markdown-mode gfm-mode)
   :mode (("\\.md\\'"          . gfm-mode)