emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Stephen Eglen <S.J.Eglen@damtp.cam.ac.uk>
To: Stephen Eglen <S.J.Eglen@damtp.cam.ac.uk>
Cc: emacs-orgmode@gnu.org, David Engster <deng@randomsample.de>
Subject: Re: org-caldav: Sync Org with external calendars through CalDAV (Owncloud, Google, ...)
Date: Wed, 05 Dec 2012 12:15:10 +0000	[thread overview]
Message-ID: <85624gae5t.fsf@damtp.cam.ac.uk> (raw)
In-Reply-To: <85a9tsafrt.fsf@damtp.cam.ac.uk>


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	other threads:[~2012-12-05 12:15 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-14 19:12 org-caldav: Sync Org with external calendars through CalDAV (Owncloud, Google, ...) David Engster
2012-07-20 16:36 ` David Engster
2012-07-20 16:55   ` Mehul Sanghvi
2012-07-20 18:00   ` Jason F. McBrayer
     [not found]   ` <deng@randomsample.de>
2012-07-20 18:29     ` Nick Dokos
2012-07-23 19:25   ` Suvayu Ali
2012-07-26 17:10   ` Aurélien Aptel
2012-07-25  8:18 ` Torsten Wagner
2012-07-25 19:02   ` David Engster
2012-07-27 14:49 ` Torsten Wagner
2012-07-28 12:05   ` David Engster
2012-08-03  7:46 ` Bastien
2012-08-03 12:48   ` David Engster
2012-08-04  8:27     ` Bastien
2012-08-05 18:41       ` David Engster
2012-12-03 12:35         ` Stephen Eglen
2012-12-03 19:50           ` David Engster
2012-12-04 10:29             ` Suvayu Ali
2012-12-04 10:45               ` Stephen Eglen
2012-12-04 11:19                 ` Stephen Eglen
2012-12-04 19:19                   ` David Engster
2012-12-05 11:40                     ` Stephen Eglen
2012-12-05 12:15                       ` Stephen Eglen [this message]
2012-12-04 19:27               ` David Engster
2012-09-11 14:17 ` Philipp Haselwarter
  -- strict thread matches above, loose matches on Subject: below --
2012-07-26 16:43 Robert Eckl
2012-07-26 19:03 ` David Engster
2012-07-26 20:55   ` David Engster
2012-07-30  2:01   ` Luis Anaya

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=85624gae5t.fsf@damtp.cam.ac.uk \
    --to=s.j.eglen@damtp.cam.ac.uk \
    --cc=deng@randomsample.de \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).