filter agenda files for existence.
This commit is contained in:
parent
a47eb273c3
commit
0fc6ab44ad
4
init.el
4
init.el
@ -567,7 +567,9 @@ The current directory is assumed to be the project's root otherwise."
|
|||||||
(defvar org-capture-templates nil))
|
(defvar org-capture-templates nil))
|
||||||
(setq org-completion-use-ido t)
|
(setq org-completion-use-ido t)
|
||||||
(setq org-enforce-todo-dependencies t)
|
(setq org-enforce-todo-dependencies t)
|
||||||
(setq org-agenda-files (list org-gtd-file org-habits-file org-projectile:projects-file))
|
(setq org-agenda-files
|
||||||
|
(--filter (file-exists-p it)
|
||||||
|
(list org-gtd-file org-habits-file org-projectile:projects-file)))
|
||||||
(add-to-list 'org-capture-templates
|
(add-to-list 'org-capture-templates
|
||||||
`("h" "Habit" entry (file+headline ,org-habits-file "Habits")
|
`("h" "Habit" entry (file+headline ,org-habits-file "Habits")
|
||||||
"* TODO
|
"* TODO
|
||||||
|
Loading…
Reference in New Issue
Block a user