Mu4e: have =mu4e replace an empty workspace
This commit is contained in:
parent
82c99b78f2
commit
79f8107e43
1 changed files with 6 additions and 1 deletions
|
@ -55,6 +55,11 @@ default/fallback account."
|
|||
(interactive)
|
||||
(require 'mu4e)
|
||||
(if (featurep! :ui workspaces)
|
||||
;; 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)
|
||||
(setq +mu4e--old-wconf (current-window-configuration))
|
||||
(delete-other-windows)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue