# HG changeset patch # User Augie Fackler # Date 1409590943 14400 # Node ID 0a593d2c0595dc932bc9b2c0172c802648b4ecc7 # Parent 1b4b235482c51b0bc0f22c371badaf01116a3246 diff-mode: don't clean whitespace Useful for when I'm touching up patches before applying them. diff --git a/.elisp/settings/40.modes.el b/.elisp/settings/40.modes.el --- a/.elisp/settings/40.modes.el +++ b/.elisp/settings/40.modes.el @@ -26,6 +26,7 @@ point." (set-variable 'af-cleanup-whitespace nil)) (add-hook 'rst-mode-hook 'af-no-clean-whitespace) (add-hook 'makefile-mode-hook 'af-no-clean-whitespace) +(add-hook 'diff-mode-hook 'af-no-clean-whitespace) (autoload 'js2-mode "js2" nil t) (add-to-list 'auto-mode-alist '("\\.js$" . js2-mode))