Exemplarily simplify hook definition for BBDB setup

Inspired by the `use-package` documentation, but the other places where
`add-hook` is called this simplification does not seem to be appropriate
from my point of view (missing `-hook` suffix, better readability when
calling `add-hook` directly).
This commit is contained in:
Daniel - 2024-04-25 17:16:58 +02:00
parent 37d8c1c282
commit 8fa265bd9b
Signed by: dbo
GPG Key ID: 784AA8DF0CCDF625
1 changed files with 3 additions and 4 deletions

View File

@ -1454,14 +1454,13 @@ Note that this workaround is incomplete, as explained in this comment."
bbdb-initialize
bbdb-mua-auto-update-init
bbdb-save)
:hook ((message-setup . bbdb-mail-aliases)
(mail-setup . bbdb-mail-aliases))
:init (setq bbdb-completion-display-record nil
bbdb-complete-mail-allow-cycling t
bbdb-mua-auto-action 'query
bbdb-default-country "Germany")
:config (progn
(add-hook 'message-setup-hook 'bbdb-mail-aliases)
(add-hook 'mail-setup-hook 'bbdb-mail-aliases)
(run-with-timer 0 3600 #'bbdb-save)))
:config (run-with-timer 0 3600 #'bbdb-save))
;; Gnus package configuration