mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
app/calendar: fix edge case with +calendar/quit
The user can open the calendar directly, with `M-x cfw:open-calendar-buffer`, which sidesteps the workspace init logic in =calendar. This fixes +calendar/quit so it can deal with this use case. Mentioned in #4019
This commit is contained in:
@ -29,11 +29,12 @@
|
||||
"TODO"
|
||||
(interactive)
|
||||
(if (featurep! :ui workspaces)
|
||||
(+workspace/delete "Calendar")
|
||||
(doom-kill-matching-buffers "^\\*cfw:")
|
||||
(when (+workspace-exists-p "Calendar")
|
||||
(+workspace/delete "Calendar"))
|
||||
(when (window-configuration-p +calendar--wconf)
|
||||
(set-window-configuration +calendar--wconf))
|
||||
(setq +calendar--wconf nil)))
|
||||
(setq +calendar--wconf nil))
|
||||
(doom-kill-matching-buffers "^\\*cfw[:-]"))
|
||||
|
||||
;;;###autoload
|
||||
(defun +calendar/open-calendar ()
|
||||
|
Reference in New Issue
Block a user