Fix setting elfeed directories

This commit is contained in:
Evie Litherland-Smith 2023-10-28 10:41:42 +01:00
parent bea6ff65bc
commit c70002fb0c

View file

@ -1,6 +1,7 @@
(setq elfeed-db-directory "~/.elfeed/db/"
elfeed-enclosure-default-dir "~/.elfeed/enclosures/"
rmh-elfeed-org-files (list (expand-file-name "feeds.org" elfeed-db-directory) "elfeed.org"))
(let ((elfeed-base-directory "~/.elfeed"))
(setq elfeed-db-directory (expand-file-name "db" elfeed-base-directory)
elfeed-enclosure-default-dir (expand-file-name "enclosures" elfeed-base-directory)
rmh-elfeed-org-files (list (expand-file-name "feeds.org" elfeed-base-directory))))
(when (require 'elfeed nil :noerror)
(add-hook 'elfeed-search-mode-hook #'elfeed-update)