mu4e-view: assign gnus-article-buffer in mu4e-view-mode

Some external programs (such as bbdb) seems to depend on that.
This commit is contained in:
Dirk-Jan C. Binnema 2023-11-09 21:16:35 +02:00
parent cfd327b98c
commit d2d9585f75
1 changed files with 4 additions and 0 deletions

View File

@ -1057,6 +1057,10 @@ Based on Gnus' article-mode."
(lambda(func &rest args)
(if (mu4e--view-mode-p)
"." (apply func args))))
;; some external tools (bbdb) depend on this
(setq gnus-article-buffer (current-buffer))
(use-local-map mu4e-view-mode-map)
(mu4e-context-minor-mode)
(mu4e-search-minor-mode)