Exporting to ical with emacs

235 views
Skip to first unread message

Boyd Kelly

unread,
Feb 27, 2014, 8:08:19 PM2/27/14
to vimorg...@googlegroups.com
Hi,

I hope this is not too much off topic.  I have now progressed to running emacs -l ~/.emacs -eval '(org-export-icalendar-all-agenda-files)' --batch which is working mostly fine.  However I want to try and sync with another calendar, and so I have put the following in my .emacs file:

(setq org-icalendar-include-todo t)
(setq org-icalendar-store-UID t)
(setq org-icalendar-use-scheduled '(todo-start event-if-todo event-if-not-todo))
(setq org-icalendar-use-deadline '(todo-due event-if-todo event-if-not-todo))
(setq org-combined-agenda-icalendar-file "~/gtd/combined.ics")

When I do a C-c C-e I (Export all files to ical) from within emacs it effectively adds the UID property to the todo items in the 'agenda.org' files.  if however I run emacs --batch -l ~/.emacs  as above from the command line, it respects all the setting above from .emacs, but not org-icalendar-store-UID.  Not knowing emacs (and preferring VIM!!), I have tried to add some things like (require calendar) in my init, but with no results. 

Any ideas?  Or any pointers to debug what might be happening?

bk

Herbert Sitz

unread,
Feb 27, 2014, 10:13:07 PM2/27/14
to vimorg...@googlegroups.com
On Thu, Feb 27, 2014 at 5:08 PM, Boyd Kelly <bke...@coastsystems.net> wrote:
I hope this is not too much off topic.  I have now progressed to running emacs -l ~/.emacs -eval '(org-export-icalendar-all-agenda-files)' --batch which is working mostly fine.  However I want to try and sync with another calendar, and so I have put the following in my .emacs file:
[...]
 

Any ideas?  Or any pointers to debug what might be happening?


Boyd -- Sorry, doing have any ideas.  You might ask the question on the orgmode newslist.  I bet they can help you.

Also, depending on much you like orgmode you may want to check out using it with the EVIL vim emulator in Emacs.  EVIL has a decent vim-like feel, especially with a couple of tweaks.  If main goal is to use orgmode in EVIL you will want set of vim-like keybindings in EVIL for orgmode functions.  I offered a start for that in an old post on orgmode newslist, and someone else made a few improvements.  I think a decent little project would be to do f  ull keybindings for orgmode in EVIL:  http://article.gmane.org/gmane.emacs.orgmode/52815/match=evil

Hope that helps,

Herb

Boyd Kelly

unread,
Feb 28, 2014, 1:55:48 AM2/28/14
to vimorg...@googlegroups.com, hes...@gmail.com
Wow!  Thanks!
Boyd

Herbert Sitz

unread,
Feb 28, 2014, 12:50:29 PM2/28/14
to vimorg...@googlegroups.com
On Thu, Feb 27, 2014 at 10:55 PM, Boyd Kelly <bke...@coastsystems.net> wrote:
Wow!  Thanks!
Boyd

Besides needing the org keybindings, main thing in EVIL that bugs me is that out-of-box it's still easy to get stuck in Emacs' minibuffer command line, needing to press ctrl-G instead of ESC to get out of it.  You can get fix for that and some other ideas here:
http://stackoverflow.com/questions/8483182/emacs-evil-mode-best-practice

Reply all
Reply to author
Forward
0 new messages