Reputation: 451
I am a total emacs/lisp newbie, just trying to export my todo's to ics. In my init file I have (setq org-calendar-icalendar-todo t), and when I export within emacs with C-c C-e I, then I do get the todos exported in the .ics files.
However I want to do this in a batch file. I have run emacs --batch -eval "(org-export-icalendar-all-agenda-files)", but it doesn't seem to pick up the org-calendar-icalendar-todo variable in the init file or produce the output files.
How can I make this happen on the command line?
Upvotes: 1
Views: 1255
Reputation: 20342
With minimal movements you can do this:
emacs --batch -l ~/.emacs --eval "(org-export-icalendar-all-agenda-files)"
If loading the whole config is too much for you, just create a separate file
~/foo.el
with your preferred config and replace ~/.emacs
with ~/foo.el
in the
command above.
Upvotes: 1