[oni-elfeed] Subscribe to specific wallpaper sizes on reddit
This commit is contained in:
parent
ce285a51d6
commit
7f72a0a47e
1 changed files with 10 additions and 2 deletions
|
@ -4,7 +4,7 @@
|
|||
|
||||
;; Author: Tom Willemse <tom@ryuslash.org>
|
||||
;; Keywords: local
|
||||
;; Version: 2022.0927.235248
|
||||
;; Version: 2022.1122.232823
|
||||
;; Package-Requires: (elfeed olivetti)
|
||||
|
||||
;; This program is free software; you can redistribute it and/or modify
|
||||
|
@ -80,7 +80,8 @@
|
|||
"https://programming-journal.org/feed.xml"
|
||||
"https://unzip.dev/rss/"
|
||||
("http://lambda-the-ultimate.org/rss.xml" lisp)
|
||||
"https://planet.emacslife.com/atom.xml"))
|
||||
"https://planet.emacslife.com/atom.xml"
|
||||
"https://www.reddit.com/r/wallpapers/new.xml"))
|
||||
|
||||
(add-hook 'elfeed-new-entry-hook
|
||||
(elfeed-make-tagger :before "2 weeks ago"
|
||||
|
@ -92,6 +93,13 @@
|
|||
:entry-title (rx bos "[$]")
|
||||
:remove 'unread))
|
||||
|
||||
;;; Mark any post not containing my resolutions as read.
|
||||
(add-hook 'elfeed-new-entry-hook
|
||||
(elfeed-make-tagger :feed-url (rx "reddit.com/r/wallpapers")
|
||||
:entry-title `(not ,(rx (or (seq "5120" (minimal-match (zero-or-more whitespace)) nonl (minimal-match (zero-or-more whitespace)) "1440")
|
||||
(seq "1920" (minimal-match (zero-or-more whitespace)) nonl (minimal-match (zero-or-more whitespace)) "1080"))))
|
||||
:remove 'unread))
|
||||
|
||||
(add-hook 'elfeed-show-mode-hook #'oni-elfeed-enable-olivetti-mode)
|
||||
|
||||
(provide 'oni-elfeed)
|
||||
|
|
Loading…
Reference in a new issue