From: Samir Benmendil Date: Wed, 29 Jan 2014 18:15:36 +0000 (+0100) Subject: mutt: some more customisation X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/82a3e0f96e62623f23f5e48738fc790992e8f95a?hp=cc2fbb6e74efb6cd368878754ed0a31012b4524c mutt: some more customisation - color the sidebar - add lists - vim-like G,gg behaviour - quit on Q - bounce on B - group-reply on R - add urlview --- diff --git a/mutt/bindings b/mutt/bindings index ca7f58e..d441abc 100644 --- a/mutt/bindings +++ b/mutt/bindings @@ -1,16 +1,23 @@ # vim: ft=muttrc +bind editor delete-char + # moving around -bind pager J next-line -bind pager K previous-line +bind pager J next-line +bind pager K previous-line bind index,pager j next-undeleted bind index,pager k previous-undeleted +bind index gg first-entry +bind index G last-entry +bind pager gg top +bind pager G bottom bind index q noop +bind index Q quit # completion bind editor complete-query -bind editor ^T complete +bind editor ^T complete # sidebar bind index,pager \CK sidebar-prev @@ -20,8 +27,13 @@ bind index,pager \CO sidebar-open macro index b "toggle sidebar_visible" "Toggle sidebar" macro pager b "toggle sidebar_visible" "Toggle sidebar" +macro pager \Cu "|urlview" " + # Remap bounce-message function to “B” -bind index B bounce-message +bind index,pager B bounce-message +bind index,pager R group-reply + +bind index collapse-thread # open mailcap in attach view bind attach view-mailcap diff --git a/mutt/colors b/mutt/colors index 8865c7b..102dd0b 100644 --- a/mutt/colors +++ b/mutt/colors @@ -6,6 +6,7 @@ color normal white default color status green default +color sidebar cyan default color indicator brightwhite blue color tree blue default color error brightred default diff --git a/mutt/muttrc b/mutt/muttrc index c08c9c9..4c342fa 100644 --- a/mutt/muttrc +++ b/mutt/muttrc @@ -12,8 +12,6 @@ set editor = vim # goobook set query_command = "goobook query '%s'" -unset move - # sort/threading set sort = threads set sort_aux = last-date-received @@ -21,6 +19,10 @@ set sort_re = yes set duplicate_threads = yes set collapse_unread = no +# lists +subscribe ^chakra-.*@googlegroups.com +subscribe clementine-player@googlegroups.com + # look and feel set pager_index_lines = 12 set pager_context = 5 @@ -31,9 +33,17 @@ set tilde = yes # fills end of messages with tilde set markers = no set status_on_top = yes # also help on bottom set index_format="%Z %{%b %d} %-15.15L (%?l?%4l&%4c?) %s" +set index_format="[%Z] %{%e/%m} %-20.20L %?M?+ ?%s" + + +# header +ignore * +unignore from: to: cc: date: subject: +unhdr_order * +hdr_order from: to: cc: date: subject: # sidebar -set sidebar_width = 12 +set sidebar_width = 14 set sidebar_visible = yes set sidebar_delim = '|' set sidebar_sort = no @@ -49,6 +59,7 @@ alternative_order text/plain text/enriched text/html # save html for last set folder = "~/mail" # mail folder set spoolfile = "+gmail/inbox" # set inbox unset record # do not move sent msgs to a folder, gmail does that +unset move # do not move read msgs, gmail does that set postponed = "+gmail/drafts" # drafts folder set header_cache = "~/.cache/mutt" # cache headers for speedss source ~/.mutt/mailboxes # source mailboxes generetated by offlineimap