1
我是一個完全的emacs/lisp新手,只是試圖導出我的待辦事項到ics。在我的init文件中,我有(setq org-calendar-icalendar-todo t),並且當我用C-c C-e I導出emacs時,我確實得到了在.ics文件中導出的todos。如何在批處理模式下在emacs中設置變量
但是我想在批處理文件中做到這一點。我已經運行了emacs --batch -eval「(org-export-icalendar-all-agenda-files)」,但它似乎並沒有在init文件中找到org-calendar-icalendar-todo變量,輸出文件。
我該如何在命令行上做到這一點?
難道你不能只添加'setq' sexp到你的'-eval'嗎?即,'emacs --batch -eval'(progn(setq org-calendar-icalendar-todo t)(org-export-icalendar-all-agenda-files))「'(或其他順序,如果合適的話 - - 我不使用組織)。 – Drew
可能在批處理模式下加載舊版本的組織。 – Dror