From 409da204024e10c09242e1c6b9195f52aac9b82e Mon Sep 17 00:00:00 2001 From: dx Date: Wed, 15 Apr 2020 04:34:22 +0100 Subject: +put rss in config.el directly --- doom.d/org/config.org | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) (limited to 'doom.d/org') diff --git a/doom.d/org/config.org b/doom.d/org/config.org index 3b16275..f744115 100644 --- a/doom.d/org/config.org +++ b/doom.d/org/config.org @@ -57,28 +57,20 @@ A keybind and a routine Custom functions to work with elfeed, generating new feeds on demand and adding a keybind to help with that. -*** Custom functions and hook -These functions allow me to custom load and generate new feeds based on an opml file. +*** Feeds +Feeds for elfeed to download from. #+BEGIN_SRC elisp -(after! elfeed - (defun oreodave/elfeed/load-feeds () - (interactive) - (setq elfeed-feeds nil) - (elfeed-load-opml (concat org-directory "/elfeed.opml"))) +(setq elfeed-feeds + '(("http://feeds.bbci.co.uk/news/rss.xml" news) + ("http://www.technologyreview.com/rss") + ("https://news.ycombinator.com/rss" news compsci))) +#+END_SRC - (defun oreodave/elfeed/on-new-feed () - (interactive) - (elfeed-org-export-opml) - (write-file (concat org-directory "/elfeed.opml")) - (kill-current-buffer)) - (add-hook 'elfeed-org-new-entry-hook 'oreodave/elfeed/on-new-feed)) -#+END_SRC *** Keybinds Keybinds for elfeed locally and for the leader. #+BEGIN_SRC elisp (map! - :after elfeed (:map elfeed-search-mode-map :localleader :desc "Update feeds" "u" #'elfeed-update) -- cgit v1.2.3-13-gbd6f