diff .elisp/settings/40.modes.el @ 198:ccab2fe3a256

Merge
author Augie Fackler <durin42@gmail.com>
date Tue, 06 Apr 2010 15:13:50 -0500
parents fed1da889f84 0487f0197755
children 84eb8c90ada9
line wrap: on
line diff
--- a/.elisp/settings/40.modes.el
+++ b/.elisp/settings/40.modes.el
@@ -17,9 +17,13 @@ point."
 (add-hook 'c-mode-hook          'af-tab-fix)
 (add-hook 'sh-mode-hook         'af-tab-fix)
 (add-hook 'emacs-lisp-mode-hook 'af-tab-fix)
-(add-hook 'rst-mode-hook '(lambda ()
-                            (make-variable-buffer-local 'af-cleanup-whitespace)
-                            (set-variable 'af-cleanup-whitespace nil)))
+(defun af-no-clean-whitespace ()
+  (make-variable-buffer-local 'af-cleanup-whitespace)
+  (set-variable 'af-cleanup-whitespace nil))
+(add-hook 'rst-mode-hook 'af-no-clean-whitespace)
+(add-hook 'makefile-mode-hook '(lambda ()
+                                 (af-no-clean-whitespace)
+                                 (add-hook 'font-lock-mode-hook 'show-ws-highlight-tabs)))
 
 (autoload 'js2-mode "js2" nil t)
 (add-to-list 'auto-mode-alist '("\\.js$" . js2-mode))