summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
Diffstat (limited to 'init')
-rw-r--r--init/km-func.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/init/km-func.el b/init/km-func.el
index 69b8293..62ee561 100644
--- a/init/km-func.el
+++ b/init/km-func.el
@@ -1,8 +1,10 @@
;; http://whattheemacsd.com/
;; whitespace cleanup
+
(defun km/cleanup-buffer ()
(interactive)
- (untabify (point-min) (point-max))
+ (unless (equal major-mode 'makefile-gmake-mode)
+ (untabify (point-min) (point-max)))
(delete-trailing-whitespace)
(set-buffer-file-coding-system 'utf-8))
(add-hook 'before-save-hook 'km/cleanup-buffer)