[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:
parent
3c22cbb1e0
commit
9c7baa6235
1 changed files with 7 additions and 1 deletions
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
;; Author: Tom Willemse <tom@ryuslash.org>
|
;; Author: Tom Willemse <tom@ryuslash.org>
|
||||||
;; Keywords: local
|
;; Keywords: local
|
||||||
;; Version: 2022.0912.090640
|
;; Version: 2022.0922.222847
|
||||||
;; Package-Requires: (elfeed olivetti)
|
;; Package-Requires: (elfeed olivetti)
|
||||||
|
|
||||||
;; This program is free software; you can redistribute it and/or modify
|
;; This program is free software; you can redistribute it and/or modify
|
||||||
|
@ -85,6 +85,12 @@
|
||||||
(elfeed-make-tagger :before "2 weeks ago"
|
(elfeed-make-tagger :before "2 weeks ago"
|
||||||
:remove 'unread))
|
: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)
|
(add-hook 'elfeed-show-mode-hook #'oni-elfeed-enable-olivetti-mode)
|
||||||
|
|
||||||
(provide 'oni-elfeed)
|
(provide 'oni-elfeed)
|
||||||
|
|
Loading…
Reference in a new issue