comparison .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
comparison
equal deleted inserted replaced
197:88ba320ffe7d 198:ccab2fe3a256
15 ;; add hooks for modes you want to use the tab completion for: 15 ;; add hooks for modes you want to use the tab completion for:
16 (set-variable 'af-cleanup-whitespace t) 16 (set-variable 'af-cleanup-whitespace t)
17 (add-hook 'c-mode-hook 'af-tab-fix) 17 (add-hook 'c-mode-hook 'af-tab-fix)
18 (add-hook 'sh-mode-hook 'af-tab-fix) 18 (add-hook 'sh-mode-hook 'af-tab-fix)
19 (add-hook 'emacs-lisp-mode-hook 'af-tab-fix) 19 (add-hook 'emacs-lisp-mode-hook 'af-tab-fix)
20 (add-hook 'rst-mode-hook '(lambda () 20 (defun af-no-clean-whitespace ()
21 (make-variable-buffer-local 'af-cleanup-whitespace) 21 (make-variable-buffer-local 'af-cleanup-whitespace)
22 (set-variable 'af-cleanup-whitespace nil))) 22 (set-variable 'af-cleanup-whitespace nil))
23 (add-hook 'rst-mode-hook 'af-no-clean-whitespace)
24 (add-hook 'makefile-mode-hook '(lambda ()
25 (af-no-clean-whitespace)
26 (add-hook 'font-lock-mode-hook 'show-ws-highlight-tabs)))
23 27
24 (autoload 'js2-mode "js2" nil t) 28 (autoload 'js2-mode "js2" nil t)
25 (add-to-list 'auto-mode-alist '("\\.js$" . js2-mode)) 29 (add-to-list 'auto-mode-alist '("\\.js$" . js2-mode))
26 (add-hook 'js2-mode-hook 'af-tab-fix) 30 (add-hook 'js2-mode-hook 'af-tab-fix)
27 31