filter agenda files for existence.

This commit is contained in:
Ivan Malison 2014-12-08 15:13:53 -08:00
parent 4c6cea86b9
commit 3c0eecbf28

View File

@ -567,7 +567,9 @@ The current directory is assumed to be the project's root otherwise."
(defvar org-capture-templates nil))
(setq org-completion-use-ido 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
`("h" "Habit" entry (file+headline ,org-habits-file "Habits")
"* TODO