summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2014-12-07 00:33:30 -0500
committerKyle Meyer <kyle@kyleam.com>2014-12-07 00:33:30 -0500
commite7bc5b2f98d29153a8f182bbe5e3800161f3e1d1 (patch)
tree90849a2033984a87ddccff2acd7f1f2dfef743c8
parent4b803fe47650b03895d5597eb8edd28bbdaf0052 (diff)
downloademacs.d-e7bc5b2f98d29153a8f182bbe5e3800161f3e1d1.tar.gz
Check indent-tabs-mode in cleanup-buffer function
-rw-r--r--lisp/init-editing.el2
-rw-r--r--lisp/init-general.el3
2 files changed, 3 insertions, 2 deletions
diff --git a/lisp/init-editing.el b/lisp/init-editing.el
index a633e63..9462cf4 100644
--- a/lisp/init-editing.el
+++ b/lisp/init-editing.el
@@ -131,7 +131,7 @@ and '<<<' mark the bounds of the narrowed region.
(defun km/cleanup-buffer ()
(interactive)
(unless km/prevent-cleanup
- (unless (equal major-mode 'makefile-gmake-mode)
+ (unless indent-tabs-mode
(untabify (point-min) (point-max)))
(delete-trailing-whitespace)
(set-buffer-file-coding-system 'utf-8)))
diff --git a/lisp/init-general.el b/lisp/init-general.el
index 65a37f8..1a67905 100644
--- a/lisp/init-general.el
+++ b/lisp/init-general.el
@@ -12,7 +12,8 @@
browse-url-browser-function 'browse-url-generic
browse-url-generic-program "firefox")
-(setq-default indicate-empty-lines t)
+(setq-default indicate-empty-lines t
+ indent-tabs-mode nil)
(show-paren-mode t)