1
0
Fork 0

[oni-elfeed] Mark any paid LWN post as read

I can't read these anyway, so I might as well not see them.
This commit is contained in:
Tom Willemse 2022-09-22 22:29:06 -07:00
parent 3c22cbb1e0
commit 9c7baa6235

View file

@ -4,7 +4,7 @@
;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local
;; Version: 2022.0912.090640
;; Version: 2022.0922.222847
;; Package-Requires: (elfeed olivetti)
;; This program is free software; you can redistribute it and/or modify
@ -85,6 +85,12 @@
(elfeed-make-tagger :before "2 weeks ago"
:remove 'unread))
;;; Mark any post from LWN as read if it starts with “[$]”.
(add-hook 'elfeed-new-entry-hook
(elfeed-make-tagger :feed-url (rx "lwn.net")
:entry-title (rx bos "[$]")
:remove 'unread))
(add-hook 'elfeed-show-mode-hook #'oni-elfeed-enable-olivetti-mode)
(provide 'oni-elfeed)