Literate configuration of Elfeed
Recently I’ve been toying with a literate configuration1 of Emacs. My init.el took a straightforward form:
|
|
And all of my configuration lives in an org-file. This alone gives me very little benefit for now, but in the future, it will make it easier to have it as a dedicated page on this site.
However, one thing completely surprised me: the elfeed configuration. Until now, I used the standard way of configuring feeds with Elisp. It works, but what it is not is readable. A list of:
|
|
is far from being manageable and requires constant manual labor.
Elfeed-org
One of the packages expanding capabilities of elfeed is elfeed-org2. It allows configuring the list of feeds with a standard org tree. Since my config is now also an org file, nothing stops me from adding the list as an org-tree inside my config org-file! I set it up via:
|
|
Therefore, I am now pointing at the same file to become the data source for elfeed-org as the rest of my config. Just a few lines down, I start to define my list of subscriptions:
|
|
Much more readable! Elfeed-org will ignore the entire outer tree and extract the feeds from leaves under the :elfeed:
tag.