Only add bug-reference setup function after the feature was loaded

This is done so that we do not override the default defvar value of
bug-reference-auto-setup-functions but instead add our own hook to it.
This commit is contained in:
Leo Gaskin 2023-02-03 13:32:34 +01:00
parent 3212a79846
commit d4cb318bc1
1 changed files with 3 additions and 2 deletions

View File

@ -1328,8 +1328,9 @@ GROUP-REGEXP and each header value against HEADER-REGEXP in
(mail-fetch-field "maildir")
header-values))))
(add-hook 'bug-reference-auto-setup-functions
#'mu4e--view-try-setup-bug-reference-mode)
(with-eval-after-load 'bug-reference
(add-hook 'bug-reference-auto-setup-functions
#'mu4e--view-try-setup-bug-reference-mode))
(provide 'mu4e-view)