mu4e-view-gnus: Set buffer name earlier

Seems some hooks might depend on the buffer being called *Article* in
hooks.
This commit is contained in:
Dirk-Jan C. Binnema 2021-03-18 00:50:30 +02:00
parent 03c7bb1eab
commit c04d9ceff0
1 changed files with 1 additions and 1 deletions

View File

@ -53,6 +53,7 @@
(gnus-buttonized-mime-types (append (list "multipart/signed"
"multipart/encrypted")
gnus-buttonized-mime-types)))
(setq mu4e~view-buffer-name gnus-article-buffer)
(switch-to-buffer (get-buffer-create mu4e~view-buffer-name))
(buffer-disable-undo)
(insert-file-contents-literally path nil nil nil t)
@ -360,7 +361,6 @@ some Gnus-functionality that does not work in mu4e."
Gnus' article-mode."
;; Restore C-h b default behavior
(define-key mu4e-view-mode-map (kbd "C-h b") 'describe-bindings)
(setq mu4e~view-buffer-name gnus-article-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-nop)