From 71546e6ee82cb363d9cfbbee0d0ba2a8b3d1fa28 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 1 Nov 2015 16:10:11 -0500 Subject: [PATCH] Clean up hooks --- core/core-editor.el | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/core/core-editor.el b/core/core-editor.el index 54dd65128..1eb996773 100644 --- a/core/core-editor.el +++ b/core/core-editor.el @@ -63,13 +63,12 @@ enable multiple minor modes for the same regexp.") (associate! makefile-gmake-mode :match "/Makefile$") (associate! nxml-mode :match "\\.plist$") -(add-hook! help-mode 'visual-line-mode) -(add-hook! python-mode 'electric-indent-local-mode) -(add-hook! makefile-mode 'narf|enable-tabs) ; Use normal tabs in makefiles -(add-hook! before-save 'delete-trailing-whitespace) -(add-hook! eldoc-mode (diminish 'eldoc-mode " ?")) -;; Line wrapping -(add-hook! prog-mode 'narf|enable-comment-hard-wrap) +(add-hook! help-mode 'visual-line-mode) +(add-hook! python-mode 'electric-indent-local-mode) +(add-hook! makefile-mode 'narf|enable-tabs) ; Use normal tabs in makefiles +(add-hook! before-save 'delete-trailing-whitespace) +(add-hook! eldoc-mode (diminish 'eldoc-mode " ?")) +(add-hook! prog-mode 'narf|enable-comment-hard-wrap) (add-hook! auto-fill-mode (diminish 'auto-fill-function)) (defadvice delete-trailing-whitespace (around delete-trailing-whitespace-ignore-line activate)