Automatically fetching newly added feeds in elfeed org file
The best Rss or Atom feed reader is elfeed . There is no competition at all in comparison to it, thanks to the excellent programming done by skeeto (Christopher Wellons) . I urge my readers to go through his blog at null program . elfeed-org is a package that makes it simpler to write the list of elfeed feeds you need with tags and categories, etc in an org file.
WIth that said, let’s dive in.
I have tried all sorts of rss feed readers, commercial and non commercial, but none compare to the flexibility and robustness of elfeed. Tagging. Filtering. Extensibility. What does it not have? It can do all sorts of things. You can tag an entry based on what keywords it contains. For example, if a news item contains the keyword “Bitcoin” then it’s probably a good idea to tag it as crypto.
But this article is not about all the glorious things elfeed can do. It is about one of my quick dirty hacks to make my life slightly easier.
A very particular nuisance for me was to add a feed in the elfeed-org and manually update that feed, and run hooks. Either i did that, or i directly ran
elfeed-update command which updates all my feeds.
That is a really bad idea. Since the more requests you make to a server, the more the chance that you will get blocked for misusing it. Many websites don’t block you though, but some do, either permanently or partially.
The function i wrote is given below:
I add the given lines to the top of my
You will get an unsafe variable prompt every time you save the file thereafter. But, now your feeds will be immediately fetched when you update the feeds.org file.
Well, actually i don’t really use the above file setting. I use
(setq-global after-save-hook 'my-elfeed-org-update) in my config since i use different instance for elfeed using my