summary refs log tree commit diff stats
path: root/tag-emacs/emacs.d/init.org
diff options
context:
space:
mode:
Diffstat (limited to 'tag-emacs/emacs.d/init.org')
-rw-r--r--tag-emacs/emacs.d/init.org20
1 files changed, 20 insertions, 0 deletions
diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org
index cd89011..4c643c5 100644
--- a/tag-emacs/emacs.d/init.org
+++ b/tag-emacs/emacs.d/init.org
@@ -1640,6 +1640,26 @@ I can use this to keep a journal.  I should use it.
                         (file-notify-add-watch org-file '(change) #'ap/org-mobile-pull))))))))
 #+END_SRC
 
+**** org-caldav
+
+I’ve setup CalDAV on my server, it would be nice to use it directly
+from org-mode.  Previously I had to wait for org-mobile to sync and
+write to the Android calendar, and then for DAVDroid to sync with the server.
+
+#+BEGIN_SRC emacs-lisp
+  (use-package org-caldav
+    :defer 30
+    :config (progn
+              (setq org-caldav-url "https://calendar.alanpearce.uk/alan"
+                    org-caldav-calendar-id "caldav"
+                    org-caldav-inbox (concat org-directory "/agenda/caldav.org")
+                    org-caldav-files `(,(concat org-directory "/agenda/organiser.org"))
+                    org-icalendar-timezone "Europe/Berlin"
+                    org-icalendar-use-scheduled '(event-if-todo event-if-not-todo todo-start)
+                    org-icalendar-use-deadline '(event-if-todo event-if-not-todo todo-start)
+                    org-icalendar-alarm-time 60)))
+#+END_SRC
+
 * Programming
 ** flycheck