alphabetize lists in feeds.nix, redo bookmarks in mu4e

This commit is contained in:
willemml 2023-03-13 11:09:24 -07:00
parent c3e2e47597
commit 961355f6cc
Signed by: willemml
GPG key ID: C3DE5DF6198DACBD
2 changed files with 17 additions and 10 deletions

View file

@ -550,6 +550,13 @@ in
account-vars) account-vars)
(error "No email account found")))) (error "No email account found"))))
(setq mu4e-bookmarks
'((:name "Unread messages" :query "flag:unread AND NOT (flag:trashed OR maildir:/feeds)" :key ?u)
(:name "Today's messages" :query "date:today..now AND NOT maildir:/feeds" :key ?t)
(:name "Last 7 days" :query "date:7d..now AND NOT maildir:/feeds" :key ?w)
(:name "Feed" :query "maildir:/feeds" :key ?f)
(:name "XKCD" :query "list:xkcd.localhost" :key ?x)))
(add-hook 'mu4e-compose-pre-hook 'my-mu4e-set-account) (add-hook 'mu4e-compose-pre-hook 'my-mu4e-set-account)
''; '';

View file

@ -2,26 +2,26 @@
let let
feeds = { feeds = {
xkcd = "http://xkcd.com/atom.xml";
dailywtf = "http://syndication.thedailywtf.com/TheDailyWtf"; dailywtf = "http://syndication.thedailywtf.com/TheDailyWtf";
nixos = "https://weekly.nixos.org/feeds/all.rss.xml"; devto = "https://dev.to/feed/";
rust = "https://blog.rust-lang.org/feed.xml";
insiderust = "https://blog.rust-lang.org/inside-rust/feed.xml"; insiderust = "https://blog.rust-lang.org/inside-rust/feed.xml";
kdb424 = "https://blog.kdb424.xyz/atom.xml"; kdb424 = "https://blog.kdb424.xyz/atom.xml";
devto = "https://dev.to/feed/"; nixos = "https://weekly.nixos.org/feeds/all.rss.xml";
rust = "https://blog.rust-lang.org/feed.xml";
xkcd = "http://xkcd.com/atom.xml";
}; };
rss2emailConfig = { rss2emailConfig = {
html-mail = "True";
date-header = "True";
from = "rss2email@home.localhost";
force-from = "False";
use-publisher-email = "True";
active = "true"; active = "true";
to = "willem@home.localhost"; date-header = "True";
email-protocol = "maildir"; email-protocol = "maildir";
force-from = "False";
from = "rss2email@home.localhost";
html-mail = "True";
maildir-mailbox = "feeds"; maildir-mailbox = "feeds";
maildir-path = config.home.sessionVariables.MAILDIR; maildir-path = config.home.sessionVariables.MAILDIR;
to = "willem@home.localhost";
use-publisher-email = "True";
}; };
mkFeedString = name: url: '' mkFeedString = name: url: ''