mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
app/calendar: minor refactor; rename +calendar-open-calendar-function
This commit is contained in:
@ -7,9 +7,11 @@
|
||||
(unless (featurep! :feature workspaces)
|
||||
(user-error ":feature workspaces is required, but disabled"))
|
||||
(+workspace-switch "Calendar" t)
|
||||
(if-let* ((buf (cl-find-if (lambda (it) (string-match-p "^\\*cfw" (buffer-name (window-buffer it))))
|
||||
(doom-visible-windows))))
|
||||
(select-window (get-buffer-window buf)) (call-interactively +calendar-open-calendar-function))
|
||||
(if-let* ((win (cl-loop for win in (doom-visible-windows)
|
||||
if (string-match-p "^\\*cfw" (buffer-name (window-buffer it)))
|
||||
return win)))
|
||||
(select-window win)
|
||||
(call-interactively +calendar-open-function))
|
||||
(+workspace/display))
|
||||
|
||||
;;;###autoload
|
||||
|
Reference in New Issue
Block a user