From 7dc07c0dece5e46b4f12d502934ac744f41d2c52 Mon Sep 17 00:00:00 2001 From: Tucker Evans Date: Thu, 26 Sep 2019 18:51:16 -0400 Subject: Update mutt configs --- mutt/.mutt/clarkson.edu | 3 +++ mutt/.muttrc | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/mutt/.mutt/clarkson.edu b/mutt/.mutt/clarkson.edu index f5b376c..8b295aa 100644 --- a/mutt/.mutt/clarkson.edu +++ b/mutt/.mutt/clarkson.edu @@ -9,3 +9,6 @@ set spoolfile = "~/Mail/clarkson/inbox" set sendmail = "/usr/bin/msmtp -a clarkson" color status black yellow + +set alias_file = ~/.mutt/alias.clarkson.edu +source $alias_file diff --git a/mutt/.muttrc b/mutt/.muttrc index 2765e81..0147133 100644 --- a/mutt/.muttrc +++ b/mutt/.muttrc @@ -97,3 +97,8 @@ bind pager N search-opposite bind browser gg first-entry bind browser G last-entry + +# 'L' performs a notmuch query, showing only the results +macro index L "unset wait_keyread -p 'notmuch query: ' x; echo \$x >~/.cache/mutt_terms~i \"\`notmuch search --output=messages \$(cat ~/.cache/mutt_terms) | head -n 600 | perl -le '@a=<>;chomp@a;s/\^id:// for@a;$,=\"|\";print@a'\`\"" "show only messages matching a notmuch pattern" +# 'a' shows all messages again (supersedes default binding) +macro index a "all\n" "show all messages (undo limit)" -- cgit v1.1