Example doesn't work in general

For example, when the calendar view is refreshed.
Use cfw:org-create-file-source when wanting to show org files from other sources.
This commit is contained in:
Max Schlueter 2020-07-29 12:01:25 +02:00
parent 8f994551d4
commit 87d0fff2fd
No known key found for this signature in database
GPG key ID: AC34EBD08FB3857A

View file

@ -43,23 +43,6 @@ calendar data from:
))) )))
#+END_SRC #+END_SRC
To control what org files ~clfw:org-create-source~ will use, ~let~-bind
~org-agenda-files~ around a call to ~+calendar/open-calendar~ like so:
#+BEGIN_SRC emacs-lisp
;;;###autoload
(defun cfw:open-org-calendar-with-cal1 ()
(interactive)
(let ((org-agenda-files '("/path/to/org/" "/path/to/cal1.org")))
(call-interactively #'+calendar/open-calendar)))
;;;###autoload
(defun cfw:open-org-calendar-with-cal2 ()
(interactive)
(let ((org-agenda-files '("/path/to/org/" "/path/to/cal2.org")))
(call-interactively #'+calendar/open-calendar)))
#+END_SRC
The [[https://github.com/kiwanami/emacs-calfw][kiwanami/emacs-calfw]] project readme contains more examples. The [[https://github.com/kiwanami/emacs-calfw][kiwanami/emacs-calfw]] project readme contains more examples.
** Synchronizing Org and Google Calendar ** Synchronizing Org and Google Calendar