From 9c7baa6235c819f81a8a6641312ca53b1c368a77 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Thu, 22 Sep 2022 22:29:06 -0700 Subject: [PATCH] [oni-elfeed] Mark any paid LWN post as read I can't read these anyway, so I might as well not see them. --- oni-elfeed.el | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 ;; 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)