Mercurial > dotfiles
changeset 189:0487f0197755
emacs: disable whitespace-cleanup in makefiles, highlight tabs in makefiles
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Sat, 06 Mar 2010 23:09:39 -0600 |
parents | e77c01b7b0f4 |
children | 5dbff8b65be7 |
files | .elisp/settings/40.modes.el |
diffstat | 1 files changed, 7 insertions(+), 3 deletions(-) [+] |
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))