mirror of
https://github.com/doomemacs/doomemacs.git
synced 2025-12-26 11:52:44 -08:00
fix(calendar): adapt to upstream refactor (part 2)
Amend:4186b63b38Amend:5222baa373Fix: doomemacs#8598 Ref: kiwanami/emacs-calfw@b7c26ecbe9
This commit is contained in:
parent
01b958ea35
commit
43a93e8321
1 changed files with 4 additions and 7 deletions
|
|
@ -5,6 +5,7 @@
|
|||
"Name of the workspace created by `=calendar', dedicated to calfw.")
|
||||
|
||||
(defun +calendar--init ()
|
||||
(require 'calfw)
|
||||
(if-let* ((win (get-buffer-window calfw-calendar-buffer-name)))
|
||||
(select-window win)
|
||||
(call-interactively +calendar-open-function)))
|
||||
|
|
@ -41,15 +42,11 @@
|
|||
(doom-kill-matching-buffers "^\\*cfw[:-]"))
|
||||
|
||||
;;;###autoload
|
||||
(defun +calendar/open-calendar ()
|
||||
(defun +calendar/open-calendar (&rest args)
|
||||
"TODO"
|
||||
(interactive)
|
||||
(calfw-open-calendar-buffer
|
||||
;; :custom-map calfw-my-cal-map
|
||||
:contents-sources
|
||||
(list
|
||||
(calfw-org-create-source (face-foreground 'default)) ; orgmode source
|
||||
)))
|
||||
(apply #'calfw-org-open-calendar nil "org-agenda" (face-foreground 'default)
|
||||
args))
|
||||
|
||||
;;;###autoload
|
||||
(defun +calendar-calfw-render-button-a (title command &optional state)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue