email/mu4e: avoid delete-other-windows twice

- `+workspace-switch` already does this for us
- see also https://github.com/hlissner/doom-emacs/pull/2123#discussion_r352371828
This commit is contained in:
Yiming Chen 2019-12-02 08:20:57 +08:00
parent a7eef56b9d
commit f6a10f1268

View file

@ -55,9 +55,9 @@ default/fallback account."
(require 'mu4e)
(if (featurep :ui 'workspaces)
(+workspace-switch +mu4e-workspace-name t)
(setq +mu4e--old-wconf (current-window-configuration)))
(delete-other-windows)
(switch-to-buffer (doom-fallback-buffer))
(setq +mu4e--old-wconf (current-window-configuration))
(delete-other-windows)
(switch-to-buffer (doom-fallback-buffer)))
(mu4e~start 'mu4e~main-view)
;; (save-selected-window
;; (prolusion-mail-show))