diff options
-rw-r--r-- | gnus.el | 62 | ||||
-rw-r--r-- | groups.txt | 78 |
2 files changed, 95 insertions, 45 deletions
diff --git a/gnus.el b/gnus.el index 2ea42ed..3701c70 100644 --- a/gnus.el +++ b/gnus.el | |||
@@ -140,48 +140,20 @@ | |||
140 | bbdb-offer-save 1 | 140 | bbdb-offer-save 1 |
141 | bbdb-update-records-p t)) | 141 | bbdb-update-records-p t)) |
142 | 142 | ||
143 | ;;; Gnus subscriptions | 143 | ;;; Functions |
144 | (setq gnus-options-subscribe (rx (or ;; all alternatives go under this | 144 | ;; see https://wpc.io/blog/posts/bulk-import-rss-feeds-to-gnus-via-gwene.html |
145 | (seq string-start | 145 | (defun gnus/slurp (file) |
146 | "nnimap+fastmail.com:" | 146 | "Read FILE into a string." |
147 | (or ;; folders in Fastmail | 147 | (with-temp-buffer |
148 | "INBOX"))) | 148 | (insert-file-contents file) |
149 | (seq string-start | 149 | (buffer-substring-no-properties |
150 | "nntp+news.tilde.club:" | 150 | (point-min) |
151 | (or ;; news groups in tilde.club | 151 | (point-max)))) |
152 | (seq "local." | 152 | |
153 | (or "general")) | 153 | (defun gnus/import-feed-list (path) |
154 | (seq "tilde." | 154 | "Import list of NNTP feeds from file at PATH." |
155 | (or "art" | 155 | (interactive "F") |
156 | "club" | 156 | (let ((feeds (split-string (gnus/slurp path) "\n" t))) |
157 | "cosmic" | 157 | (cl-loop for feed in feeds |
158 | "food+drink" | 158 | do (with-message (format "Subscribing to %s" feed) |
159 | "gopher" | 159 | (gnus-subscribe-group feed))))) |
160 | "meta" | ||
161 | "poetry" | ||
162 | "services")))))) | ||
163 | |||
164 | (setq gnus-options-not-subscribe (rx (or ;; all alternatives go under this | ||
165 | (seq string-start | ||
166 | "nnimap+fastmail.com:" | ||
167 | (or ;; folders in Fastmail | ||
168 | "Archive" | ||
169 | "Bulk" | ||
170 | "DeltaChat" | ||
171 | "Gmail" | ||
172 | "Pam" | ||
173 | "Spam" | ||
174 | "Trash" | ||
175 | "blag" | ||
176 | "notes")) | ||
177 | (seq string-start | ||
178 | "nntp+news.tilde.club:" | ||
179 | (or ;; news groups in tilde.club | ||
180 | (seq "tilde." | ||
181 | (or "black" | ||
182 | "javascript" | ||
183 | "nsfw" | ||
184 | "php" | ||
185 | "pink" | ||
186 | "python" | ||
187 | "your"))))))) | ||
diff --git a/groups.txt b/groups.txt new file mode 100644 index 0000000..5cee798 --- /dev/null +++ b/groups.txt | |||
@@ -0,0 +1,78 @@ | |||
1 | nnimap+fastmail.com:INBOX | ||
2 | nntp+news.gwene.org:gwene.blog.botanistinthek | ||
3 | nntp+news.gwene.org:gwene.ca.muto | ||
4 | nntp+news.gwene.org:gwene.casa.m455 | ||
5 | nntp+news.gwene.org:gwene.casa.m455.weed.weed | ||
6 | nntp+news.gwene.org:gwene.codes.esoteric | ||
7 | nntp+news.gwene.org:gwene.com.aiweirdness | ||
8 | nntp+news.gwene.org:gwene.com.ajroach42 | ||
9 | nntp+news.gwene.org:gwene.com.careercenterbr | ||
10 | nntp+news.gwene.org:gwene.com.catandgirl | ||
11 | nntp+news.gwene.org:gwene.com.deprogrammatic | ||
12 | nntp+news.gwene.org:gwene.com.drewdevault.blog | ||
13 | nntp+news.gwene.org:gwene.com.ebrpl.blog | ||
14 | nntp+news.gwene.org:gwene.com.emacslife.planet | ||
15 | nntp+news.gwene.org:gwene.com.falseknees | ||
16 | nntp+news.gwene.org:gwene.com.gerwitz.hans.feeds.writing | ||
17 | nntp+news.gwene.org:gwene.com.greghendershot | ||
18 | nntp+news.gwene.org:gwene.com.invisibleup | ||
19 | nntp+news.gwene.org:gwene.com.lambdacreate.static | ||
20 | nntp+news.gwene.org:gwene.com.murilopereira | ||
21 | nntp+news.gwene.org:gwene.com.occasionallyco | ||
22 | nntp+news.gwene.org:gwene.com.rachelbythebay.w | ||
23 | nntp+news.gwene.org:gwene.com.realbakingwith.month | ||
24 | nntp+news.gwene.org:gwene.com.usesthis | ||
25 | nntp+news.gwene.org:gwene.com.wflewis | ||
26 | nntp+news.gwene.org:gwene.com.whyarentyoucod | ||
27 | nntp+news.gwene.org:gwene.com.xkcd | ||
28 | nntp+news.gwene.org:gwene.dance.hamster.blog | ||
29 | nntp+news.gwene.org:gwene.de.uninformativ.blog.feeds.en | ||
30 | nntp+news.gwene.org:gwene.info.benjaminwil.antisocial | ||
31 | nntp+news.gwene.org:gwene.institute.tilde.xfnw.sandcats | ||
32 | nntp+news.gwene.org:gwene.io.github.chrisman | ||
33 | nntp+news.gwene.org:gwene.io.github.wphicks | ||
34 | nntp+news.gwene.org:gwene.io.jao.blog | ||
35 | nntp+news.gwene.org:gwene.io.wpc.blog | ||
36 | nntp+news.gwene.org:gwene.li.eli | ||
37 | nntp+news.gwene.org:gwene.link.atthis | ||
38 | nntp+news.gwene.org:gwene.me.tedder.dyn.rss.farside.daily | ||
39 | nntp+news.gwene.org:gwene.name.spwhitton.blog | ||
40 | nntp+news.gwene.org:gwene.net.acdw | ||
41 | nntp+news.gwene.org:gwene.net.acdw.feed.weed | ||
42 | nntp+news.gwene.org:gwene.net.envs.lucidiot.rsrsss | ||
43 | nntp+news.gwene.org:gwene.net.neeasade.notes.rss.full | ||
44 | nntp+news.gwene.org:gwene.net.ryliejamesthom.blog | ||
45 | nntp+news.gwene.org:gwene.news.tilde.rss.token.fvd.fj8r.qkhr.by9j1y.on1t6rykddc | ||
46 | nntp+news.gwene.org:gwene.nz.geek.sanctum.blog | ||
47 | nntp+news.gwene.org:gwene.org.eu.pt.astrosnail.blog | ||
48 | nntp+news.gwene.org:gwene.org.lisp.planet.rss20 | ||
49 | nntp+news.gwene.org:gwene.org.neocities.society | ||
50 | nntp+news.gwene.org:gwene.org.neocities.supervegan | ||
51 | nntp+news.gwene.org:gwene.org.scheme.planet | ||
52 | nntp+news.gwene.org:gwene.org.z3bra.blog | ||
53 | nntp+news.gwene.org:gwene.rip.computer | ||
54 | nntp+news.gwene.org:gwene.space.covering.puzzles | ||
55 | nntp+news.gwene.org:gwene.space.makeworld | ||
56 | nntp+news.gwene.org:gwene.space.petras | ||
57 | nntp+news.gwene.org:gwene.team.tilde.dozens.dreams | ||
58 | nntp+news.gwene.org:gwene.town.tilde.dozens.rsspect | ||
59 | nntp+news.gwene.org:gwene.town.tilde.lucidiot.fridaypostcard | ||
60 | nntp+news.gwene.org:gwene.town.tilde.lucidiot.weed.weed | ||
61 | nntp+news.gwene.org:gwene.town.tilde.m455.javapool | ||
62 | nntp+news.gwene.org:gwene.town.tilde.mroik.blog | ||
63 | nntp+news.gwene.org:gwene.town.tilde.trm.blog | ||
64 | nntp+news.gwene.org:gwene.uk.co.gaffen | ||
65 | nntp+news.gwene.org:gwene.uk.me.insom | ||
66 | nntp+news.gwene.org:gwene.voyage.cosmic | ||
67 | nntp+news.gwene.org:gwene.website.coolguy.weed.weed | ||
68 | nntp+news.gwene.org:gwene.xyz.earnestma.blog | ||
69 | nntp+news.gwene.org:gwene.xyz.jackreid | ||
70 | nntp+news.tilde.club:local.general | ||
71 | nntp+news.tilde.club:tilde.art | ||
72 | nntp+news.tilde.club:tilde.club | ||
73 | nntp+news.tilde.club:tilde.cosmic | ||
74 | nntp+news.tilde.club:tilde.food+drink | ||
75 | nntp+news.tilde.club:tilde.gopher | ||
76 | nntp+news.tilde.club:tilde.meta | ||
77 | nntp+news.tilde.club:tilde.poetry | ||
78 | nntp+news.tilde.club:tilde.services | ||