Remove +rss-elfeed-files & use rmh-elfeed-org-files

No need for the abstraction.
This commit is contained in:
Henrik Lissner 2020-02-18 00:18:18 -05:00
parent 2350e266c0
commit 60fde473d4
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -4,10 +4,6 @@
;; by apps Reeder and Readkit. It can be invoked via `=rss'. Otherwise, if you ;; by apps Reeder and Readkit. It can be invoked via `=rss'. Otherwise, if you
;; don't care for the UI you can invoke elfeed directly with `elfeed'. ;; don't care for the UI you can invoke elfeed directly with `elfeed'.
(defvar +rss-elfeed-files (list "elfeed.org")
"Where to look for elfeed.org files, relative to `org-directory'. Can be
absolute paths.")
(defvar +rss-split-direction 'below (defvar +rss-split-direction 'below
"What direction to pop up the entry buffer in elfeed.") "What direction to pop up the entry buffer in elfeed.")
@ -67,8 +63,10 @@ easier to scroll through.")
(use-package! elfeed-org (use-package! elfeed-org
:when (featurep! +org) :when (featurep! +org)
:after elfeed :after elfeed
:init
(setq rmh-elfeed-org-files (list "elfeed.org"))
:config :config
(let ((default-directory org-directory)) (let ((default-directory org-directory))
(setq rmh-elfeed-org-files (setq rmh-elfeed-org-files
(mapcar #'expand-file-name +rss-elfeed-files))) (mapcar #'expand-file-name rmh-elfeed-org-files)))
(elfeed-org)) (elfeed-org))