From b28037af4e2ca6a1eb7c9974cd54ebd9b9143ca4 Mon Sep 17 00:00:00 2001 From: Oscar Najera Date: Thu, 21 Dec 2023 12:21:08 +0100 Subject: [Calendar] Use stdout version. Fulfill from Emacs --- config/doom/config.org | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'config/doom') diff --git a/config/doom/config.org b/config/doom/config.org index f1a7c07..edf72e9 100644 --- a/config/doom/config.org +++ b/config/doom/config.org @@ -161,12 +161,17 @@ this new window. #+begin_src emacs-lisp (use-package! cal-sync :load-path "~/dev/org-caldav" - :commands (cal-sync-push cal-sync-import-file cal-sync-delete) + :commands (cal-sync-push cal-sync-import-file cal-sync-delete on/calendar-fetch) :init (map! :leader (:prefix-map "mc" "p" #'cal-sync-push "f" #'cal-sync-import-file)) :config + (defun on/calendar-fetch () + (interactive) + (call-process "org_agenda_sync" + nil (list :file (expand-file-name "~/org/caldav.org")) nil + "--format" "org")) (setq cal-sync-url "https://oscar@cloud.oscarnajera.com/remote.php/dav/calendars/oscar" cal-sync-calendar-id "personal-1" org-icalendar-date-time-format ":%Y%m%dT%H%M%SZ")) -- cgit v1.2.3