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:
parent
f6bddc8fe2
commit
32baf538ee
1 changed files with 8 additions and 1 deletions
|
@ -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))
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue