|
From: | Michael Steiner |
Subject: | [Orgmode] Re: [google] updated awk script for google to org conversion |
Date: | Mon, 12 Jul 2010 09:48:17 -0400 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.4) Gecko/20100608 Lightning/1.0b2pre Thunderbird/3.1 |
On 2010-07-12 05:22, Rémi Vanicat wrote:
"Sven Bretfeld"<address@hidden> writes: [...]2. Running the above script with cron, makes Emacs continually ask if googlecalendar.org should really be edited, because the file had changed on disk. So I put the whole thing into an Emacs function:you could use auto-revert-mode:
That's what i do: i slightly changed ical2org.awk by replacing line 77 print "#+TITLE: Main Google calendar entries" withprint "#+TITLE: Main Google calendar entries -*- mode: auto-revert; mode: org; -*-"
which does make it automatic exactly for this files. Works fairly well. In addition as i only do one-way sync i also turn the files (via file-permissions) read-only so the buffer is read-only and not accidentally modifled ..
-michael-BTW: Sven, if you use option -O <outputfilename> you don't have the problem .[0-9] files; besides it's easier to manage multiple calendars ...
[Prev in Thread] | Current Thread | [Next in Thread] |