email/mu4e: add featurep check for workspaces
- if module workspaces is not used, an error would be raised when calling =mu4e `=mu4e: Symbol’s function definition is void: +workspace-switch` - if module workspaces is not used, an error would be raised when quiting mu4e `=mu4e: Symbol’s function definition is void: +workspace/delete`
This commit is contained in:
parent
9bd8904838
commit
ba2e7836ab
1 changed files with 4 additions and 2 deletions
|
@ -52,7 +52,8 @@ default/fallback account."
|
|||
"Start email client."
|
||||
(interactive)
|
||||
(require 'mu4e)
|
||||
(+workspace-switch +mu4e-workspace-name t)
|
||||
(if (featurep :ui 'workspaces)
|
||||
(+workspace-switch +mu4e-workspace-name t))
|
||||
(mu4e~start 'mu4e~main-view)
|
||||
;; (save-selected-window
|
||||
;; (prolusion-mail-show))
|
||||
|
@ -74,5 +75,6 @@ default/fallback account."
|
|||
|
||||
(defun +mu4e-kill-mu4e-h ()
|
||||
;; (prolusion-mail-hide)
|
||||
(when (+workspace-exists-p +mu4e-workspace-name)
|
||||
(when (and (featurep :ui 'workspaces)
|
||||
(+workspace-exists-p +mu4e-workspace-name))
|
||||
(+workspace/delete +mu4e-workspace-name)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue