diff options
author | Kyle Meyer <kyle@kyleam.com> | 2015-02-13 23:49:07 -0500 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2015-02-13 23:49:07 -0500 |
commit | 4d2b8607e5d1c8b447610b1fe1a7c23a26190324 (patch) | |
tree | a3ebccc535a4cc1d20e6b86c1f16cbe5317095eb /lisp | |
parent | b8ffd041f50680a233b6741624ab90d5014ac8ea (diff) | |
download | emacs.d-4d2b8607e5d1c8b447610b1fe1a7c23a26190324.tar.gz |
Remove unnecessary lambdas from hooks
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/init-gnus.el | 3 | ||||
-rw-r--r-- | lisp/init-text.el | 5 |
2 files changed, 3 insertions, 5 deletions
diff --git a/lisp/init-gnus.el b/lisp/init-gnus.el index a4657bc..f0b1c5e 100644 --- a/lisp/init-gnus.el +++ b/lisp/init-gnus.el @@ -196,8 +196,7 @@ read. Don't ask to confirm." footnote-section-tag "") (add-hook 'message-send-hook 'km/message-confirm-sender) -(add-hook 'message-mode-hook - (lambda () (flyspell-mode 1))) +(add-hook 'message-mode-hook 'flyspell-mode) (defun km/message-confirm-sender () "Stop sending message from the wrong address." diff --git a/lisp/init-text.el b/lisp/init-text.el index 2a4e3cd..fd75b1b 100644 --- a/lisp/init-text.el +++ b/lisp/init-text.el @@ -1,7 +1,6 @@ -(add-hook 'text-mode-hook (lambda () - (abbrev-mode 1) - (turn-on-auto-fill))) +(add-hook 'text-mode-hook 'abbrev-mode) +(add-hook 'text-mode-hook 'turn-on-auto-fill) (defun km/export-wrapped-text (arg) "Export the text in current buffer as wrapped text. |