]> git.rmz.io Git - dotfiles.git/commitdiff
mutt: some more customisation
authorSamir Benmendil <samir.benmendil@gmail.com>
Wed, 29 Jan 2014 18:15:36 +0000 (19:15 +0100)
committerSamir Benmendil <samir.benmendil@gmail.com>
Wed, 29 Jan 2014 18:15:36 +0000 (19:15 +0100)
- color the sidebar
- add lists
- vim-like G,gg behaviour
- quit on Q
- bounce on B
- group-reply on R
- add urlview

mutt/bindings
mutt/colors
mutt/muttrc

index ca7f58e7a920973efac12e212daaf1e635426589..d441abcb2e0ba08f1a3a5d9cd98cd5fc51b791db 100644 (file)
@@ -1,16 +1,23 @@
 # vim: ft=muttrc
 
+bind editor <delete> 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 <Tab> 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 "<enter-command>toggle sidebar_visible<enter><refresh>" "Toggle sidebar"
 macro pager b "<enter-command>toggle sidebar_visible<enter><redraw-screen>" "Toggle sidebar"
 
+macro pager \Cu "|urlview<enter>" "
+
 # 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 <space> collapse-thread
 
 # open mailcap in attach view
 bind attach <return>    view-mailcap
index 8865c7b4f737c3e87d1a57eae95fc441cf85e2e3..102dd0b377c64f59af1306c2edef7f4f65c0eb6d 100644 (file)
@@ -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
index c08c9c96c368a9f61cb8d497177bf7fe07b145dc..4c342fac6f1177ab40f0d1d6cf6ca1db6f19cf80 100644 (file)
@@ -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