dengste / org-caldav

Caldav sync for Emacs orgmode
GNU General Public License v3.0
718 stars 105 forks source link

Multiple calendars from multiple sources? (org-caldav-urls) #236

Open fapdash opened 3 years ago

fapdash commented 3 years ago

Would it be possible to support loading of some calendars from NextCloud and some calendars from Google Calendar?

florhizome commented 3 years ago

Sure, you can customize the plist org-caldav-calendars for that; see README. org-caldav-url is only the default url, it gets overwritten.

MartinNowak commented 1 year ago

Specifically here https://github.com/dengste/org-caldav/blob/43fba8b59ff89903d1313c3343722160b7d5ff8b/org-caldav.el#L926, this overrides the defaults here https://github.com/dengste/org-caldav/blob/43fba8b59ff89903d1313c3343722160b7d5ff8b/org-caldav.el#L968.

(setq org-caldav-calendars
  '((:url "caldav.example.org"
     :calendar-id "work@whatever"
     :files ("~/org/work.org")
     :inbox "~/org/fromwork.org")
    (:url "caldav.example.com"
     :calendar-id "stuff@mystuff"
     :files ("~/org/sports.org" "~/org/play.org")
     :skip-conditions (regexp "soccer")
     :inbox "~/org/fromstuff.org")) )