dotfiles

$HOME is where the <3 is
git clone git://git.alexkarle.com/dotfiles.git
Log | Files | Refs | Submodules | README

commit f2553fa6dad661a49b5699f1b2af462ae23ab623 (patch)
parent a03289502f048f3c6374d9e454564edb75f6031b
Author: Alex Karle <alex@karle.co>
Date:   Mon,  8 Jul 2019 23:25:28 -0400

[mutt] add muttrc.local concept, update mailcap, bindings

Given that I am not *always* using my karleco account, I added the
concept of sourcing a "muttrc.local" which is not checked in. This file
can be all the account info, or just a file that sources the
accounts/karleco.muttrc.

Small changes to muttrc including some key bindings, mailcap for images,
and adding a BCC to myself on send so it shows up in =INBOX.

Diffstat:
Mmutt/.gitignore | 3+++
Mmutt/mailcap | 1+
Mmutt/muttrc | 11++++++++---
3 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/mutt/.gitignore b/mutt/.gitignore @@ -4,3 +4,6 @@ # Don't check in those emails ;) cache + +# Local muttrc to determine which account to use, etc +muttrc.local diff --git a/mutt/mailcap b/mutt/mailcap @@ -1,3 +1,4 @@ text/html; firefox '%s' &; test=test -n "$DISPLAY"; needsterminal; text/html; w3m -I %{charset} -T text/html; copiousoutput; +image/*; xdg-open '%s' &; test=test -n "$DISPLAY"; needsterminal; application/pdf; xdg-open '%s' &; test=test -n "$DISPLAY"; needsterminal; diff --git a/mutt/muttrc b/mutt/muttrc @@ -3,12 +3,12 @@ ################################################################################ # General -source ~/.config/mutt/accounts/karleco.muttrc +source ~/.config/mutt/muttrc.local # Appearance # TODO: maybe one day a color scheme... set sort=threads -set sort_aux=reverse-date +set sort_aux=reverse-last-date-received # Attachments set mailcap_path=~/.config/mutt/mailcap @@ -23,6 +23,8 @@ set timeout=15 # mutt blocks mail check if no user input set header_cache="~/.config/mutt/cache" set message_cachedir="~/.config/mutt/cache" +# BCC self to show up in INBOX +my_hdr BCC: $from ################################################################################ # Bindings @@ -46,6 +48,9 @@ bind index N search-opposite bind index,pager \CD half-down bind index,pager \CU half-up bind index,pager d half-down -bind index,browser u half-up +bind index,pager u half-up +bind index,pager <up> previous-new-then-unread +bind index,pager <down> next-new-then-unread +bind index,pager R group-reply bind attach <return> view-mailcap