Don't throw error if elfeed org file does not exist

The user may not want an org file, so we shouldn't impose this error on
them if one doesn't exist.
This commit is contained in:
Henrik Lissner 2020-02-18 00:19:56 -05:00
parent 60fde473d4
commit e3d7b2662c
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -66,7 +66,8 @@ easier to scroll through.")
:init :init
(setq rmh-elfeed-org-files (list "elfeed.org")) (setq rmh-elfeed-org-files (list "elfeed.org"))
:config :config
(let ((default-directory org-directory)) (and (let ((default-directory org-directory))
(setq rmh-elfeed-org-files (setq rmh-elfeed-org-files
(mapcar #'expand-file-name rmh-elfeed-org-files))) (cl-remove-if-not
(elfeed-org)) #'file-exists-p (mapcar #'expand-file-name rmh-elfeed-org-files))))
(elfeed-org)))