nixos/home/emacs/modules/custom-feed-config.el
Evie Litherland-Smith 48aa8b1a5a Add keymap to open/refresh dashboard
Replace use of keymap-set global-map with keymap-global-set for brevity
2023-11-04 12:23:46 +00:00

15 lines
581 B
EmacsLisp

(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)
(keymap-global-set "C-c f f" #'elfeed)
(add-hook 'elfeed-search-mode-hook #'elfeed-update)
(when (require 'elfeed-org nil :noerror)
(elfeed-org))
(when (require 'elfeed-tube nil :noerror)
(elfeed-tube-setup)))
(provide 'custom-feed-config)