aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--oni-elfeed.el8
1 files changed, 7 insertions, 1 deletions
diff --git a/oni-elfeed.el b/oni-elfeed.el
index 9cac765..b1d515f 100644
--- a/oni-elfeed.el
+++ b/oni-elfeed.el
@@ -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)