Skip to content

Commit

Permalink
mu4e-view: assign gnus-article-buffer in mu4e-view-mode
Browse files Browse the repository at this point in the history
Some external programs (such as bbdb) seems to depend on that.
  • Loading branch information
djcb committed Nov 4, 2023
1 parent afb98aa commit c3bc50b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mu4e/mu4e-view.el
Original file line number Diff line number Diff line change
Expand Up @@ -1050,6 +1050,9 @@ This is useful for advising some Gnus-functionality that does not work in mu4e."
(define-derived-mode mu4e-view-mode gnus-article-mode "mu4e:view"
"Major mode for viewing an e-mail message in mu4e.
Based on Gnus' article-mode."
;; some external tools (bbdb) depend on this
(setq gnus-article-buffer (current-buffer))

;; ;; turn off gnus modeline changes and menu items
(advice-add 'gnus-set-mode-line :around #'mu4e--view-nop)
(advice-add 'gnus-button-reply :around #'mu4e--view-button-reply)
Expand Down

0 comments on commit c3bc50b

Please sign in to comment.