[Org] Fix bug when initializing custom agenda files
This commit is contained in:
parent
5bc22120fe
commit
fdcbeebcb8
@ -246,10 +246,13 @@ forces clocking in of the default task."
|
||||
(set-default symbol value)
|
||||
(setq org-agenda-files (remove-duplicates
|
||||
(cl-remove-if #'string-empty-p
|
||||
(list db/org-default-home-file
|
||||
(mapcar (lambda (symbol)
|
||||
(when (boundp symbol)
|
||||
(symbol-value symbol)))
|
||||
'(db/org-default-home-file
|
||||
db/org-default-work-file
|
||||
db/org-default-refile-file
|
||||
db/org-default-notes-file))
|
||||
db/org-default-notes-file)))
|
||||
:test #'equalp)))
|
||||
|
||||
(defcustom db/org-default-work-file ""
|
||||
@ -282,8 +285,6 @@ forces clocking in of the default task."
|
||||
:type 'string
|
||||
:set #'db/update-org-agenda-files)
|
||||
|
||||
|
||||
|
||||
(setq org-agenda-include-diary nil
|
||||
org-agenda-span 1
|
||||
org-agenda-diary-file db/org-default-refile-file
|
||||
|
||||
Loading…
Reference in New Issue
Block a user