介绍
elfeed 是emacs中一款十分好用的RSS阅读器。虽然说也有Gnus,Wanderlust等其他RSS阅读器,但是elfeed是配置起来相较简单,功能强大,并且能满足我的需求。
安装
在layer中加入如下代码
下面的链接是你订阅的RSS源。
(elfeed :variables
elfeed-feeds '(("http://nullprogram.com/feed/" blog emacs)
("https://awsl.io/feed.xml" zzhwaxy)
("https://blog.csdn.net/guaigle001/rss/list" 一剑名动江湖)))
当然你也可以配置org文件来添加RSS源,并且给不同的文章添加分类。
使用
重启emacs,按 SPC a f 打开elfeed。
一开始列表是空的,使用 g r 来更新列表。
使用 b 跳转浏览器打开链接,也可以直接在emacs中阅读,不过浏览器上的体验好一点。
使用技巧
elfeed 提供了搜索功能,使用 elfeed-search-set-filter.(即快捷键 S )设置搜索条件。
elfeed 按标签搜索,以下是搜索选项,
- :authors : A list of author plists (:name, :uri, :email).
- :canonical-url : The final URL for the feed after all redirects.
- :categories : The feed-supplied categories for this entry.
- :etag : HTTP Etag header, for conditional GETs.
- :failures : Number of times this feed has failed to update.
- :last-modified : HTTP Last-Modified header, for conditional GETs.
- :title : Overrides the feed-supplied title for display purposes, both for feeds and entries. See also elfeed-search-set-feed-title and elfeed-search-set-entry-title.
设置搜索时间 @6-months-ago @1-years-old
显示未读过的文章 +unread
只显示读过的文章 -unread
常用快捷键
command | Default Key Binding | Function |
---|---|---|
elfeed | , a f | 打开elfeed |
elfeed-update | g r | 更新文章列表 |
elfeed-search-browse-url | b | 使用浏览器阅读 |
elfeed-search-yank | y | 复制文章链接 |
elfeed-search-untag-all-unread | r | 修改文章为已读 |
elfeed-search-tag-all-unread | u | 修改文章为未读 |
elfeed-search-tag-all | + | 给文章添加特定标签 |
elfeed-search-untag-all | - | 删除文章特定标签 |
elfeed-search-set-filter | S | 设置搜索条件 |
elfeed-db-compact | c | 还原默认搜索条件 |
注意
elfeed的数据库保存在 ~/.elfeed 下
参考资料
https://github.com/syl20bnr/spacemacs/tree/master/layers/%2Bweb-services/elfeed