aboutsummaryrefslogtreecommitdiff
path: root/doom.d/org/config.org
diff options
context:
space:
mode:
Diffstat (limited to 'doom.d/org/config.org')
-rw-r--r--doom.d/org/config.org22
1 files changed, 7 insertions, 15 deletions
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)