From 87e0ca4b73aefad5771e67a4958eff70e8d0911d Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Tue, 16 Jul 2019 08:30:30 -0700 Subject: [PATCH] Add r/emacs and mark any post older than 2 weeks as read --- oni-elfeed.el | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/oni-elfeed.el b/oni-elfeed.el index 46ac0ef..fe80290 100644 --- a/oni-elfeed.el +++ b/oni-elfeed.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse ;; Keywords: local -;; Version: 20190711224914 +;; Version: 20190716082505 ;; Package-Requires: (elfeed) ;; This program is free software; you can redistribute it and/or modify @@ -30,7 +30,12 @@ (setq elfeed-feeds '("http://nullprogram.com/feed/" - "http://planet.emacsen.org/atom.xml")) + ("http://planet.emacsen.org/atom.xml" emacs) + ("https://www.reddit.com/r/emacs/hot.xml" emacs))) + +(add-hook 'elfeed-new-entry-hook + (elfeed-make-tagger :before "2 weeks ago" + :remove 'unread)) ;;;###autoload(with-eval-after-load 'elfeed (require 'oni-elfeed))