Mu4e: Include workspace switch in if true case

This commit is contained in:
TEC 2020-10-13 17:26:26 +08:00
parent c59a1ff498
commit 522c1ca33b
No known key found for this signature in database
GPG key ID: 779591AFDB81F06C

View file

@ -58,9 +58,10 @@ default/fallback account."
;; delete current workspace if empty
;; this is useful when mu4e is in the daemon
;; as otherwise you can accumulate empty workspaces
(unless (+workspace-buffer-list)
(+workspace-delete (+workspace-current-name)))
(+workspace-switch +mu4e-workspace-name t)
(progn
(unless (+workspace-buffer-list)
(+workspace-delete (+workspace-current-name)))
(+workspace-switch +mu4e-workspace-name t))
(setq +mu4e--old-wconf (current-window-configuration))
(delete-other-windows)
(switch-to-buffer (doom-fallback-buffer)))