diff options
| author | Vito Graffagnino <vito@graffagnino.xyz> | 2020-09-08 18:10:49 +0100 |
|---|---|---|
| committer | Vito Graffagnino <vito@graffagnino.xyz> | 2020-09-08 18:10:49 +0100 |
| commit | 3b0142cedcde39e4c2097ecd916a870a3ced5ec6 (patch) | |
| tree | 2116c49a845dfc0945778f2aa3e2118d72be428b /.config/mutt/muttrc | |
| parent | 8cc927e930d5b6aafe3e9862a61e81705479a1b4 (diff) | |
Added the relevent parts of the .config directory. Alss add ssh config
Diffstat (limited to '.config/mutt/muttrc')
| -rw-r--r-- | .config/mutt/muttrc | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/.config/mutt/muttrc b/.config/mutt/muttrc new file mode 100644 index 0000000..70ef3e9 --- /dev/null +++ b/.config/mutt/muttrc @@ -0,0 +1,74 @@ +# vim: filetype=neomuttrc +source /usr/share/mutt-wizard/mutt-wizard.muttrc # mw-autogenerated +source /home/shared/dotfiles/private/.mutt/colors.muttrc +# -------- Setting {{{ +#------------------------------------------------------ +# Set default text editor +set editor = "$EDITOR + -c 'set textwidth=72' -c 'set wrap' -c 'set spell spelllang=en' " +set pager_context=4 +set pager_index_lines=10 +set pager_stop +set text_flowed=yes +# }}} +# ------- Account hooks {{{ +#------------------------------------------------------ +account-hook '1-herts.muttrc' 'set imap_user=vg17aar@herts.ac.uk imap_pass=`pass mutt-wizard-herts`' +account-hook '2-xyz.muttrc' 'set imap_user=vito imap_pass=`pass mutt-wizard-xyz`' +account-hook '3-bt.muttrc' 'set imap_user=v.graffagnino@btinternet imap_pass=`pass mutt-wizard-bt`' +# +# }}} +# ------- Folder hooks {{{ +#------------------------------------------------------ +folder-hook '1-herts.muttrc' 'source ~/.config/mutt/accounts/1-herts.muttrc' +folder-hook '2-xyz.muttrc' 'source ~/.config/mutt/accounts/2-xyz.muttrc' +folder-hook '3-bt.muttrc' 'source ~/.config/mutt/accounts/4-bt.muttrc' +# }}} + +# source default account +source $HOME/.config/mutt/accounts/1-herts.muttrc # mw-autogenerated + +macro index,pager <F7> '<sync-mailbox><refresh><enter-command>source $HOME/.config/mutt/accounts/1-herts.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to v.graffagnino@herts.ac.uk" # mw-autogenerated + +macro index,pager <F8> '<sync-mailbox><refresh><enter-command>source $HOME/.config/mutt/accounts/2-xyz.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to vito@graffagnino.xyz" # mw-autogenerated + + +macro index,pager <F9> '<sync-mailbox><enter-command>source /home/archlinux/vgg/.config/mutt/accounts/3-bt.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to v.graffagnino@btinternet.com" # mw-autogenerated + +#-------- Basic config, you can leave this as is {{{ +#------------------------------------------------------ +set certificate_file = $HOME/.config/mutt/certificates +set mailcap_path = $HOME/.config/mutt/mailcap +set imap_check_subscribed +set mail_check = 500 +set timeout = 0 +set imap_keepalive = 200 +set imap_idle = yes +set move = no +set include +set sort = 'reverse-date' +set sort_aux = 'reverse-last-date-received' +set auto_tag = yes +hdr_order Date From To Cc +auto_view text/html +alternative_order text/plain text/html * +bind editor <Tab> complete-query +bind editor ^T complete +bind editor <space> noop +bind index,pager \CP sidebar-prev # Ctrl-Shift-P - Previous Mailbox +bind index,pager \CN sidebar-next # Ctrl-Shift-N - Next Mailbox +bind index,pager \CO sidebar-open # Ctrl-Shift-O - Open Highlighted Mailbox +mono bold bold +mono underline underline +mono indicator reverse +# }}} + +macro index,pager \cb "<enter-command>set pipe_decode =yes<enter><pipe-message>urlview<Enter><enter-command>set pipe_decode = no<enter>" "call urlview to extract URLs out of a message" + +macro attach,compose \cb "<pipe-entry> urlview<Enter>" "call urlview to extract URLs out of a message" + +macro index,pager \cy "<enter-command>set pipe_decode = yes<enter><pipe-message> w3m<Enter><enter-command>set pipe_decode =no<enter>" "call w3m to extract URLs out of a message" + +macro attach,compose \cy "<pipe-entry> w3m<Enter>" "call w3m to extract URLs out of a message" + +macro index \Cf "<enter-command>unset wait_key<enter><shell-escape>read -p 'Enter a search term to find with notmuch: ' x; echo \$x >~/.cache/mutt_terms<enter><limit>~i \"\`notmuch search --output=messages \$(cat ~/.cache/mutt_terms) | head -n 600 | perl -le '@a=<>;s/\^id:// for@a;$,=\"|\";print@a' | perl -le '@a=<>; chomp@a; s/\\+/\\\\+/ for@a;print@a' \`\"<enter>" "show only messages matching a notmuch pattern" +#source ~/.config/mutt/mutt_alias |
