1
0
Fork 0

If the projects directory doesn’t exist, that’s fine

This commit is contained in:
Tom Willemse 2021-02-01 13:41:54 -08:00
parent 863222af0d
commit b32f8ff3c5

View file

@ -4,7 +4,7 @@
;; Author: Tom Willemse <tom@ryuslash.org> ;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local ;; Keywords: local
;; Version: 2021.0131.214650 ;; Version: 2021.0201.134139
;; Package-Requires: (oni-yasnippet oni-alert oni-hydra org-plus-contrib org-bullets org-edna diminish all-the-icons org-journal org-roam) ;; Package-Requires: (oni-yasnippet oni-alert oni-hydra org-plus-contrib org-bullets org-edna diminish all-the-icons org-journal org-roam)
;; This program is free software; you can redistribute it and/or modify ;; This program is free software; you can redistribute it and/or modify
@ -343,8 +343,10 @@ also move point to the start of the heading."
(,(rx string-start "question" string-end) ,(expand-file-name "icons8-question-mark-64.png" oni-org-icons-dir) ,@defaults) (,(rx string-start "question" string-end) ,(expand-file-name "icons8-question-mark-64.png" oni-org-icons-dir) ,@defaults)
(,(rx string-start "music" string-end) ,(expand-file-name "icons8-musical-notes-64.png" oni-org-icons-dir) ,@defaults))))) (,(rx string-start "music" string-end) ,(expand-file-name "icons8-musical-notes-64.png" oni-org-icons-dir) ,@defaults)))))
(setq org-agenda-files (cons org-default-notes-file (setq org-agenda-files
(directory-files "~/documents/org/projects/" t "\\.org\\'"))) (cons org-default-notes-file
(when (file-exists-p "~/documents/org/projects/")
(directory-files "~/documents/org/projects/" t "\\.org\\'"))))
(setq org-agenda-tags-todo-honor-ignore-options t) (setq org-agenda-tags-todo-honor-ignore-options t)
(setq org-agenda-todo-ignore-scheduled 'future) (setq org-agenda-todo-ignore-scheduled 'future)