diff options
author | Case Duckworth | 2021-05-21 10:48:05 -0500 |
---|---|---|
committer | Case Duckworth | 2021-05-21 10:57:58 -0500 |
commit | a5fe45e8db98f2405b6ec3d325d9d4366434faa7 (patch) | |
tree | a10665b4197b1417eb5cc2af865460f3ad025b84 /gnus.el | |
parent | Fix `acdw/system' argument parsing (diff) | |
download | emacs-a5fe45e8db98f2405b6ec3d325d9d4366434faa7.tar.gz emacs-a5fe45e8db98f2405b6ec3d325d9d4366434faa7.zip |
Comment out `hook-defun'
The only plus `hook-defun' has over (add-hook 'hook (defun name ... )) is the ability to add the same function to multiple hooks at once. My init files don't use that functionality, so I've retired this macro for now. I'm thinking, honestly, that if a function is used in more than one hook, it should be defined separately and added to each hook in turn ... you know, like Emacs does it by default.
Diffstat (limited to 'gnus.el')
-rw-r--r-- | gnus.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gnus.el b/gnus.el index 5fdb08f..6c244d7 100644 --- a/gnus.el +++ b/gnus.el | |||
@@ -109,9 +109,10 @@ | |||
109 | (t (mailcap-parse-mailcaps)))) | 109 | (t (mailcap-parse-mailcaps)))) |
110 | 110 | ||
111 | ;;; Composing mail | 111 | ;;; Composing mail |
112 | (hook-defun setup-message-mode message-mode-hook | 112 | (add-hook 'message-mode-hook |
113 | (flyspell-mode +1) | 113 | (defun message-mode@setup () |
114 | (local-set-key (kbd "TAB") #'bbdb-complete-mail)) | 114 | (flyspell-mode +1) |
115 | (local-set-key (kbd "TAB") #'bbdb-complete-mail))) | ||
115 | 116 | ||
116 | ;;; Sending mail | 117 | ;;; Sending mail |
117 | (setq send-mail-function #'smtpmail-send-it | 118 | (setq send-mail-function #'smtpmail-send-it |