From a5fe45e8db98f2405b6ec3d325d9d4366434faa7 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Fri, 21 May 2021 10:48:05 -0500 Subject: 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. --- gnus.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'gnus.el') diff --git a/gnus.el b/gnus.el index 5fdb08f..6c244d7 100644 --- a/gnus.el +++ b/gnus.el @@ -109,9 +109,10 @@ (t (mailcap-parse-mailcaps)))) ;;; Composing mail -(hook-defun setup-message-mode message-mode-hook - (flyspell-mode +1) - (local-set-key (kbd "TAB") #'bbdb-complete-mail)) +(add-hook 'message-mode-hook + (defun message-mode@setup () + (flyspell-mode +1) + (local-set-key (kbd "TAB") #'bbdb-complete-mail))) ;;; Sending mail (setq send-mail-function #'smtpmail-send-it -- cgit 1.4.1-21-gabe81