mu4e: use special-mode for mu4e-last-update-buffer

This buffer is not intended to be edited.
Special mode also allows quickly dismissing via the quit-window binding.
This commit is contained in:
Nicholas Vollmer 2023-08-31 12:49:25 -04:00
parent 82152d7fb3
commit 579ef175a9
1 changed files with 1 additions and 0 deletions

View File

@ -257,6 +257,7 @@ To override this behavior, customize `display-buffer-alist'."
(when (get-buffer mu4e-last-update-buffer)
(kill-buffer mu4e-last-update-buffer))
(with-current-buffer mu4e--update-buffer
(special-mode)
(clone-buffer mu4e-last-update-buffer))
;; and kill the buffer itself; the cloning is needed
;; so the temp window handling works as expected.