From 6e693f05f96f7c4546e678621818d2ba6bd90779 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Sun, 17 Feb 2013 16:13:42 -0500 Subject: protect makefile mode from tab cleanup on save --- init/km-func.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3