1
0
Fork 0

Compare commits

..

No commits in common. "881650a96bc2db415b0f962a4918c7150e93b283" and "62ec19f8ddc1f19cfcc6399879783d788263f7c2" have entirely different histories.

View file

@ -4,7 +4,7 @@
;; Author: Tom Willemse <tom@ryuslash.org> ;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local ;; Keywords: local
;; Version: 2023.1106.145401 ;; Version: 2023.0727.160959
;; 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
@ -30,7 +30,6 @@
;;; Code: ;;; Code:
(require 'elfeed) (require 'elfeed)
(require 'elfeed-search)
(require 'shr) (require 'shr)
(defun oni-elfeed-enable-olivetti-mode () (defun oni-elfeed-enable-olivetti-mode ()
@ -85,8 +84,7 @@
"https://hackaday.com/tag/cyberdeck/feed/" "https://hackaday.com/tag/cyberdeck/feed/"
"https://bm.babab.nl/feed/atom" "https://bm.babab.nl/feed/atom"
"https://finalspaceends.com/blogs/news.atom" "https://finalspaceends.com/blogs/news.atom"
"https://www.geepawhill.org/weekly/rss" "https://www.geepawhill.org/weekly/rss"))
("https://blabbermouth.net/feed" music)))
(add-hook 'elfeed-new-entry-hook (add-hook 'elfeed-new-entry-hook
(elfeed-make-tagger :before "2 weeks ago" (elfeed-make-tagger :before "2 weeks ago"
@ -122,26 +120,8 @@
:remove 'unread) :remove 'unread)
"Tagger for elfeed that marks certain posts as read for Emacslife.") "Tagger for elfeed that marks certain posts as read for Emacslife.")
(defvar oni-elfeed-blabbermouth-review-tagger
(elfeed-make-tagger :feed-url (rx "blabbermouth.net")
:entry-link (rx "/reviews/")
:add 'review)
"Tagger that marks any reviews from Blabbermouth.")
(defvar oni-elfeed-blabbermouth-favourite-tagger
(elfeed-make-tagger :feed-url (rx "blabbermouth.net")
:entry-title (rx (or "SLIPKNOT"
(seq "DREAM" whitespace "THEATER")))
:add 'favourite)
"Tagger that highlights specific bands from Blabbermouth.")
(add-hook 'elfeed-new-entry-hook oni-elfeed-blabbermouth-favourite-tagger)
(add-hook 'elfeed-new-entry-hook oni-elfeed-blabbermouth-review-tagger)
(add-hook 'elfeed-new-entry-hook oni-elfeed-duplicate-tagger) (add-hook 'elfeed-new-entry-hook oni-elfeed-duplicate-tagger)
(add-to-list 'elfeed-search-face-alist '(review :slant italic) t)
(add-to-list 'elfeed-search-face-alist '(favourite :foreground "#f17272") t)
(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)