emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] org-caldav: Sync Org with external calendars through CalDAV (Own


From: Stephen Eglen
Subject: Re: [O] org-caldav: Sync Org with external calendars through CalDAV (Owncloud, Google, ...)
Date: Wed, 05 Dec 2012 12:15:10 +0000
User-agent: mu4e 0.9.9.5-dev3; emacs 24.1.1

Now that I've got org-caldav working (thanks David), here's a simple
helper function so that the files specified in org-agenda-files are
exported.  I hope it works for others too!

(defun org-caldav-set-files-from-org-agenda ()
  "Set `org-caldav-files' from the files specified in 'org-agenda-files'.
Ensure however that `org-caldav-inbox' is not included in the file list."
  (let ((files (org-agenda-files)))
    (when (member (file-truename org-caldav-inbox) files)
      (setq files (delete (file-truename org-caldav-inbox) files)))
    (setq org-caldav-files files)))

(org-caldav-set-files-from-org-agenda)

Stephen



reply via email to

[Prev in Thread] Current Thread [Next in Thread]