Emacs orgmode议程:bashscript自动将年份导出为ical

Wor*_*ess 1 emacs bash icalendar export org-mode

我定期手动将我的议程年度视图导出到ics并上传到我的网站,谷歌日历订阅它.有用; 但它需要足够的时间来绘制年视图并将其导出到ic,我想通过bash脚本自动执行此操作.我怎样才能做到这一点?现在我在emacs中手动完成,如下所示:

M-x 议程

vy

C-wcal.ics

然后运行我的上传脚本.

Jef*_*Leo 5

您是在尝试创建icalendar文件,还是只编写年度日程?要写出年度的icalendar文件:

emacs --batch --user $USER --eval "(progn (org-agenda-list nil nil 'year) (org-icalendar-combine-agenda-files))"
Run Code Online (Sandbox Code Playgroud)

将它放在〜/ org.ics中如果您只想将年度议程作为文本捕获,那么junaleon写的是什么.