filter agenda files for existence.

This commit is contained in:
Ivan Malison 2014-12-08 15:13:53 -08:00
parent a47eb273c3
commit 0fc6ab44ad

View File

@ -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