aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordx <aryadevchavali1@gmail.com>2020-04-15 04:34:22 +0100
committerdx <aryadevchavali1@gmail.com>2020-04-15 04:34:22 +0100
commit409da204024e10c09242e1c6b9195f52aac9b82e (patch)
treefb3f782c6a5ce74936ad436cdb69b0c08f1f207a
parent7850ba15e27ea2ab58ef9622d7b0df1df6c7dc7f (diff)
downloaddotfiles-409da204024e10c09242e1c6b9195f52aac9b82e.tar.gz
dotfiles-409da204024e10c09242e1c6b9195f52aac9b82e.tar.bz2
dotfiles-409da204024e10c09242e1c6b9195f52aac9b82e.zip
+put rss in config.el directly
-rw-r--r--doom.d/init.el2
-rw-r--r--doom.d/org/config.org22
2 files changed, 8 insertions, 16 deletions
diff --git a/doom.d/init.el b/doom.d/init.el
index 9168e13..df595e1 100644
--- a/doom.d/init.el
+++ b/doom.d/init.el
@@ -167,7 +167,7 @@
:app
calendar
irc ; how neckbeards socialize
- (rss +org) ; emacs as an RSS reader
+ (rss) ; emacs as an RSS reader
;;twitter ; twitter client https://twitter.com/vnought
:config
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)