]> git.notmuchmail.org Git - notmuch/commit
emacs: Switch mode before pop-to-buffer master
authorAurelien Rouene <aurelien@rouene.fr>
Thu, 5 Mar 2026 22:33:55 +0000 (23:33 +0100)
committerDavid Bremner <david@tethera.net>
Sat, 14 Mar 2026 22:47:01 +0000 (07:47 +0900)
commit094744b3f6f5c6831b6555d1fe75709abf1d1279
treec907979e036c4ee404c9f67d50d7a27595d4d428
parent076d597308bef11bd0a13977c1d5516beed2ed4c
emacs: Switch mode before pop-to-buffer

When showing an email using notmuch-show-mode, set the mode
"notmuch-show-mode" before using "pop-to-buffer-same-window", to be
able to match on the major-mode with an entry in "display-buffer-alist".

Using the major mode is the the only mean to set display rules,
because the buffer title is set to the title of the email and is not fixed.

Signed-off-by: Aurelien Rouene <aurelien@rouene.fr>
emacs/notmuch-show.el