dotfiles

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

common.muttrc (3282B) [raw]


      1 # Common muttrc -- source in muttrc.local
      2 # In pursuit of an email client that sucks less
      3 
      4 ################################################################################
      5 # General / Behavior
      6 set ssl_force_tls = yes # Require encrypted connection
      7 
      8 # Attachments
      9 set mailcap_path=~/.config/mutt/mailcap
     10 auto_view text/html # tell mutt to load HTML via mailcap
     11 alternative_order text/plain text/enriched text/html # prefer plaintext
     12 
     13 # Fetching Mail
     14 set mail_check=90       # From the manual, over IMAP, 90 reasonable value
     15 set timeout=15          # mutt blocks mail check if no user input
     16 
     17 # Caching (speeds up IMAP considerably to not redownload every time)
     18 set header_cache="~/.config/mutt/cache"
     19 set message_cachedir="~/.config/mutt/cache"
     20 
     21 # BCC self to show up in INBOX
     22 my_hdr BCC: $from
     23 
     24 # Use the `abook` program for contact management/completions
     25 set query_command="abook --mutt-query '%s'"
     26 
     27 # Enables shelling out in macros without a pause
     28 set wait_key=no
     29 
     30 ################################################################################
     31 # Appearance / Layout
     32 set sort=threads
     33 set sort_aux=reverse-last-date-received
     34 
     35 # Show some index in the pager
     36 set pager_index_lines=6
     37 
     38 # Restrict quotes to |, :, and >  (default has } and # which match code)
     39 set quote_regexp="^([ \t]*[|>:])+"
     40 color index yellow black ~U
     41 color quoted green black
     42 color quoted1 blue black
     43 color quoted2 magenta black
     44 color quoted3 yellow black
     45 color quoted4 red black
     46 
     47 # Patch highting
     48 color body green black "^\\+.*"
     49 color body red black "^-.*"
     50 color body magenta black "^\\+\\+\\+ b/.*"
     51 color body magenta black "^--- a/.*"
     52 color body magenta black "^@@.*@@"
     53 color body magenta black "^@@.*@@"
     54 color body magenta black "^diff --git.*"
     55 color body magenta black "^index [0-9a-z]{7}\\.\\.[0-9a-z]{7}.*"
     56 
     57 ################################################################################
     58 # Bindings
     59 # I've chosen to customize-as-I-go on these. Some general guiding rules:
     60 #   1. Vi-like
     61 #       - Obvious reasons
     62 #   2. Non-destructive
     63 #       - Especially as a newby, its **the worst** to have CTRL-D
     64 #         which I spam in Vim for half-down to delete 5-10 messages
     65 #         in the pager before I've realized what I've done.
     66 
     67 # Navigation
     68 bind pager       j   next-line
     69 bind pager       k   previous-line
     70 bind index       G   last-entry
     71 bind pager       G   bottom
     72 bind index,pager g   noop          # good practice, as gg prevents g from binding
     73 bind index       gg  first-entry
     74 bind pager       gg  top
     75 bind index,pager \CD half-down
     76 bind index,pager \CU half-up
     77 bind index,pager d   half-down
     78 bind index,pager u   half-up
     79 bind index,pager <up> previous-unread
     80 bind index,pager <down> next-unread
     81 bind index,pager <tab> next-unread
     82 
     83 # Functional
     84 bind index,pager h help
     85 bind index,pager ? search-reverse
     86 bind index       N search-opposite
     87 bind index,pager R group-reply
     88 bind index       \CN toggle-new
     89 bind attach      <return> view-mailcap
     90 bind editor      <Tab> complete-query  # Used for contact-completion
     91 
     92 # Macros
     93 macro index,pager  ga "<pipe-message>abook --add-email-quiet<return>" "Add sender to abook contacts"
     94 macro index  g$ "<sync-mailbox><shell-escape>mbsync -a<return>" "Sync with mbsync"
     95 
     96 # set send_multipart_alternative=ask-no
     97 # set send_multipart_alternative_filter=markdown2html