Mercurial > dotfiles
comparison .elisp/settings/40.modes.el @ 341:0a593d2c0595
diff-mode: don't clean whitespace
Useful for when I'm touching up patches before applying them.
| author | Augie Fackler <raf@durin42.com> |
|---|---|
| date | Mon, 01 Sep 2014 13:02:23 -0400 |
| parents | 6a773ec78813 |
| children | 95621f473f7e |
comparison
equal
deleted
inserted
replaced
| 340:1b4b235482c5 | 341:0a593d2c0595 |
|---|---|
| 24 (interactive) | 24 (interactive) |
| 25 (make-variable-buffer-local 'af-cleanup-whitespace) | 25 (make-variable-buffer-local 'af-cleanup-whitespace) |
| 26 (set-variable 'af-cleanup-whitespace nil)) | 26 (set-variable 'af-cleanup-whitespace nil)) |
| 27 (add-hook 'rst-mode-hook 'af-no-clean-whitespace) | 27 (add-hook 'rst-mode-hook 'af-no-clean-whitespace) |
| 28 (add-hook 'makefile-mode-hook 'af-no-clean-whitespace) | 28 (add-hook 'makefile-mode-hook 'af-no-clean-whitespace) |
| 29 (add-hook 'diff-mode-hook 'af-no-clean-whitespace) | |
| 29 | 30 |
| 30 (autoload 'js2-mode "js2" nil t) | 31 (autoload 'js2-mode "js2" nil t) |
| 31 (add-to-list 'auto-mode-alist '("\\.js$" . js2-mode)) | 32 (add-to-list 'auto-mode-alist '("\\.js$" . js2-mode)) |
| 32 (add-hook 'js2-mode-hook 'af-tab-fix) | 33 (add-hook 'js2-mode-hook 'af-tab-fix) |
| 33 | 34 |
