Don't make a fuss when agenda-files.el is missing

This commit is contained in:
Wojciech Kozlowski 2019-04-02 10:12:06 +02:00 committed by Wojciech Kozlowski
parent e0aae51561
commit 2700f2abf9

View File

@ -84,8 +84,10 @@
;; ------------------------------------------------------------------------
;; Load agenda-files.
;; ------------------------------------------------------------------------
(let ((org-dir "~/Workspace/org/"))
(load (concat org-dir "agenda-files.el"))))
(let* ((org-dir "~/Workspace/org/")
(file-list (concat org-dir "agenda-files.el")))
(when (file-exists-p file-list)
(load file-list))))
;; ------------------------------------------------------------------------
;; Better header bullets