From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: ics calendar? Date: Thu, 07 Sep 2017 17:00:35 +0100 Message-ID: <87pob2mrbw.fsf@t3610> References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39549) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dpzEW-0003nx-N2 for emacs-orgmode@gnu.org; Thu, 07 Sep 2017 12:00:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dpzEP-0003Ts-2j for emacs-orgmode@gnu.org; Thu, 07 Sep 2017 12:00:48 -0400 Received: from mail-wm0-x234.google.com ([2a00:1450:400c:c09::234]:36260) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dpzEO-0003Sv-SV for emacs-orgmode@gnu.org; Thu, 07 Sep 2017 12:00:41 -0400 Received: by mail-wm0-x234.google.com with SMTP id r10so1649900wmf.1 for ; Thu, 07 Sep 2017 09:00:39 -0700 (PDT) In-Reply-To: (Matt Price's message of "Thu, 7 Sep 2017 10:18:16 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Matt Price Cc: Org Mode --=-=-= Content-Type: text/plain On Thursday, 7 Sep 2017 at 10:18, Matt Price wrote: > So I'm really just asking whether other people do ics exports and if > so, how you structure the org source files and so forth. I use ics export to make my calendar available to my phone. I have a script that I run periodically which has the following lines: --8<---------------cut here---------------start------------->8--- DIARY=...where my diary.org file resides... emacs -Q --batch --debug-init \ --directory=${HOME}/s/emacs \ --load=custom.el \ --load=esf-org.el --visit=${DIARY}.org --eval='(org-icalendar-export-to-ics)' --8<---------------cut here---------------end--------------->8--- and I then copy the resulting ics file to where Google Calendar, for instance, can find it. My custom.el has all of my Emacs customizations and esf-org.el my org specific customizations. I export all of my appointments and nothing else. Tasks etc. are in other org files. I simply want my Pebble watch to vibrate when I have an upcoming appointment and that's connected to my phone which needs my calendar etc. etc. etc. :-) Sounds like the "For the want of a nail, the kingdom was lost" kind of story: from Emacs via org to my watch in N easy steps! HTH, eric -- : Eric S Fraga via Emacs 26.0.50, Org release_9.0.10-723-g23eba9 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQSPXCedOQfhSlwpVw3IkZPY//z2fQUCWbFtIwAKCRDIkZPY//z2 ffCMAJ0b/UR+GVCLQqSX5Z1kTjbel4zhgQCgl0+V0PkC4/BG/E9uZ0mAqWFkWpU= =5cG8 -----END PGP SIGNATURE----- --=-=-=--