forked from colonelpanic/dotfiles
filter agenda files for existence.
This commit is contained in:
parent
4c6cea86b9
commit
3c0eecbf28
@ -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