[Org] Fix misplaced require when exporting calendar
This commit is contained in:
parent
ff607e439f
commit
305c358ca9
@ -804,10 +804,10 @@ _y_: ?y? year _q_: quit _L__l__c_: ?l?
|
||||
"Export diary.org as ics file to the current value of `org-icalendar-combined-agenda-file’.
|
||||
This is done only if the value of this variable is not null."
|
||||
(interactive)
|
||||
(require 'ox-icalendar)
|
||||
(if (null org-icalendar-combined-agenda-file)
|
||||
(message "`org-icalendar-combined-agenda-file’ not set, not exporting diary.")
|
||||
(progn
|
||||
(require 'ox-icalendar)
|
||||
(org-save-all-org-buffers)
|
||||
(let ((org-agenda-files (list db/org-default-home-file
|
||||
db/org-default-work-file))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user