diff options
author | Oscar Najera <hi@oscarnajera.com> | 2023-12-21 12:21:08 +0100 |
---|---|---|
committer | Oscar Najera <hi@oscarnajera.com> | 2024-01-02 11:05:57 +0100 |
commit | b28037af4e2ca6a1eb7c9974cd54ebd9b9143ca4 (patch) | |
tree | 3a4ad8cbcc98ed67c8b5244d695ed194d94a8571 | |
parent | c1fd997d6a579d47d0886b659a30ca5e19d0f0a6 (diff) | |
download | dotfiles-b28037af4e2ca6a1eb7c9974cd54ebd9b9143ca4.tar.gz dotfiles-b28037af4e2ca6a1eb7c9974cd54ebd9b9143ca4.tar.bz2 dotfiles-b28037af4e2ca6a1eb7c9974cd54ebd9b9143ca4.zip |
[Calendar] Use stdout version. Fulfill from Emacs
-rw-r--r-- | calendars.conf | 10 | ||||
-rw-r--r-- | config/doom/config.org | 7 |
2 files changed, 6 insertions, 11 deletions
diff --git a/calendars.conf b/calendars.conf index 9b24d4a..f09945f 100644 --- a/calendars.conf +++ b/calendars.conf @@ -1,17 +1,7 @@ [DEFAULT] -agenda_outfile=~/org/caldav.org -contacts_outfile=~/org/contacts.org ahead=90 back=28 - -[contacts] -outfile=~/org/contacts.org -user = oscar -passwordstore=CS_storage/cloud.oscarnajera.com/oscar -url=https://cloud.oscarnajera.com/remote.php/dav/addressbooks/users/oscar/{}?export -addressbooks=contacts - [catalyst] url=https://calendar.google.com/calendar/ical/c_jvsrkmkigu6ibgkmk5dr86bd7g@group.calendar.google.com/public/{}.ics calendars = basic 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")) |