mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
feat(mu4e): only call mu4e if necessary
If we are already reading emails in Mu4e or composing a message, there is no reason to go back to the main window.
This commit is contained in:
committed by
Henrik Lissner
parent
f6bddc8fe2
commit
32baf538ee
@ -67,7 +67,14 @@ default/fallback account."
|
||||
(setq +mu4e--old-wconf (current-window-configuration))
|
||||
(delete-other-windows)
|
||||
(switch-to-buffer (doom-fallback-buffer)))
|
||||
(mu4e)
|
||||
(unless (memq (buffer-local-value 'major-mode
|
||||
(window-buffer (selected-window)))
|
||||
'(mu4e-main-mode
|
||||
mu4e-headers-mode
|
||||
mu4e-view-mode
|
||||
mu4e-compose-mode
|
||||
org-msg-edit-mode))
|
||||
(mu4e))
|
||||
;; (save-selected-window
|
||||
;; (prolusion-mail-show))
|
||||
)
|
||||
|
Reference in New Issue
Block a user