Clean up hooks

This commit is contained in:
Henrik Lissner 2015-11-01 16:10:11 -05:00
parent b984f5a406
commit 71546e6ee8

View File

@ -63,13 +63,12 @@ enable multiple minor modes for the same regexp.")
(associate! makefile-gmake-mode :match "/Makefile$") (associate! makefile-gmake-mode :match "/Makefile$")
(associate! nxml-mode :match "\\.plist$") (associate! nxml-mode :match "\\.plist$")
(add-hook! help-mode 'visual-line-mode) (add-hook! help-mode 'visual-line-mode)
(add-hook! python-mode 'electric-indent-local-mode) (add-hook! python-mode 'electric-indent-local-mode)
(add-hook! makefile-mode 'narf|enable-tabs) ; Use normal tabs in makefiles (add-hook! makefile-mode 'narf|enable-tabs) ; Use normal tabs in makefiles
(add-hook! before-save 'delete-trailing-whitespace) (add-hook! before-save 'delete-trailing-whitespace)
(add-hook! eldoc-mode (diminish 'eldoc-mode " ?")) (add-hook! eldoc-mode (diminish 'eldoc-mode " ?"))
;; Line wrapping (add-hook! prog-mode 'narf|enable-comment-hard-wrap)
(add-hook! prog-mode 'narf|enable-comment-hard-wrap)
(add-hook! auto-fill-mode (diminish 'auto-fill-function)) (add-hook! auto-fill-mode (diminish 'auto-fill-function))
(defadvice delete-trailing-whitespace (around delete-trailing-whitespace-ignore-line activate) (defadvice delete-trailing-whitespace (around delete-trailing-whitespace-ignore-line activate)