blob: 0180ad3ae6e9f1e7163785bbfb5cfdf9f255ad7e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
;;; oni-elfeed.el --- Elfeed configuration -*- lexical-binding: t; -*-
;; Copyright (C) 2019 Tom Willemse
;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local
;; Version: 2022.0526.175706
;; Package-Requires: (elfeed olivetti)
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see <https://www.gnu.org/licenses/>.
;;; Commentary:
;; Configuration for the elfeed feed reader. Add the following to your init file
;; in case you want to use this configuration:
;;
;; (with-eval-after-load 'elfeed (require 'oni-elfeed))
;;; Code:
(require 'elfeed)
(require 'shr)
(defun oni-elfeed-enable-olivetti-mode ()
"Change ‘olivetti-body-width’ to match the ‘shr-max-width’."
(setq-local olivetti-body-width (1+ shr-max-width))
(olivetti-mode))
(setq elfeed-feeds
'("http://nullprogram.com/feed/"
("http://planet.emacsen.org/atom.xml" emacs)
("http://oremacs.com/atom.xml" emacs)
("http://emacshorrors.com/feed.atom" emacs)
("http://emacsredux.com/atom.xml" emacs)
("http://emacsrocks.com/atom.xml" emacs)
("http://endlessparentheses.com/atom.xml" emacs)
("http://www.masteringemacs.org/feed/" emacs)
("http://pragmaticemacs.com/feed/" emacs)
("http://sachachua.com/blog/category/emacs/feed/" emacs)
("http://planet.lisp.org/rss20.xml" lisp)
"http://aphyr.com/posts.atom"
"https://news.ycombinator.com/rss"
("https://lwn.net/headlines/newrss" linux)
("https://serversforhackers.com/feed.xml" linux)
"http://julien.danjou.info/blog/index.xml"
"https://sites.google.com/site/darkwavestyle/SecretPage1/posts.xml"
("http://lispblog.xach.com/rss" lisp)
"http://esr.ibiblio.org/?feed=rss2"
"http://feeds.feedburner.com/GiantRobotsSmashingIntoOtherGiantRobots"
"http://grumpygamer.com/rss2.0"
"http://irreal.org/blog/?feed=rss2"
"http://devblog.avdi.org/feed/"
"http://wingolog.org/feed/atom"
"http://xach.livejournal.com/data/atom"
"http://allanmcrae.com/feed/"
"http://beej.us/blog/rss.xml"
"http://steve-yegge.blogspot.be/atom.xml"
"https://www.archlinux.org/feeds/news/"
("http://blog.quicklisp.org/feeds/posts/default" lisp)
"http://www.gimp.org/news.rdf"
"https://nostarch.com/feeds/comingsoon.xml"
"https://nostarch.com/feeds/newbooks.xml"
"https://drewdevault.com/blog/index.xml"
"https://sourcehut.org/blog/index.xml"
("https://blog.tecosaur.com/tmio/rss.xml" emacs org-mode)
"https://www.opensourcestories.org/index.xml"
"https://neverworkintheory.org/atom.xml"
"https://ag91.github.io/rss.xml"))
(add-hook 'elfeed-new-entry-hook
(elfeed-make-tagger :before "2 weeks ago"
:remove 'unread))
(add-hook 'elfeed-show-mode-hook #'oni-elfeed-enable-olivetti-mode)
(provide 'oni-elfeed)
;;; oni-elfeed.el ends here
|