 
 (defvar +mu4e-workspace-name "*mu4e*"
   "TODO")
+(defvar +mu4e--old-wconf nil)
 
 (add-hook 'mu4e-main-mode-hook #'+mu4e-init-h)
 

  (interactive)
  (require 'mu4e)
  (if (featurep :ui 'workspaces)
      (+workspace-switch +mu4e-workspace-name t))
  (delete-other-windows)
  (switch-to-buffer (doom-fallback-buffer))
  (mu4e~start 'mu4e~main-view)


(defun +mu4e-kill-mu4e-h ()
  ;; (prolusion-mail-hide)
  (cond
   ((and (featurep :ui 'workspaces) (+workspace-exists-p +mu4e-workspace-name))
    (+workspace/delete +mu4e-workspace-name))

   (+mu4e--old-wconf
    (set-window-configuration +mu4e--old-wconf)
    (setq +mu4e--old-wconf nil))))
