You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

muttrc 2.1 KiB

6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. # vim: filetype=neomuttrc
  2. # This is the general mutt config which has the settings that all accounts use.
  3. bind index,pager i noop
  4. bind index,pager g noop
  5. bind index \Cf noop
  6. source etc/muttcol
  7. source etc/aliases
  8. set sleep_time = 0
  9. set sort = 'reverse-date'
  10. set editor = vim
  11. #set copy = no
  12. set timeout = "5"
  13. set mail_check = "10"
  14. set mailcap_path = ~/.config/mutt/etc/mailcap
  15. set date_format="%m/%d %I:%M"
  16. set index_format="%2C %?X?A& ? %D %-15.15F %s (%-4.4c)"
  17. #set index_format="%2C %Z %?X?A& ? %D %-15.15F %s (%-4.4c)"
  18. set forward_format = "Fwd: %s"
  19. set markers = no
  20. set mark_old = no
  21. set mime_forward = yes
  22. auto_view text/html
  23. auto_view application/pdf
  24. alternative_order text/plain text/enriched text/html
  25. # General remappings
  26. bind editor <space> noop
  27. bind index G last-entry
  28. bind index gg first-entry
  29. bind pager j next-line
  30. bind pager k previous-line
  31. bind attach,index,pager \CD next-page
  32. bind attach,index,pager \CU previous-page
  33. bind pager gg top
  34. bind pager G bottom
  35. bind index d half-down
  36. bind index u half-up
  37. bind index D delete-message
  38. bind index U undelete-message
  39. bind index F search
  40. bind index,pager R group-reply
  41. macro index,pager S '<sync-mailbox>
  42. macro index,pager \Cu |urlview\n
  43. # Notmuch searching
  44. macro index \Cf "<enter-command>unset wait_key<enter><shell-escape>read -p 'notmuch query: ' x; echo \$x >~/.cache/mutt_terms<enter><limit>~i \"\`notmuch search --output=messages \$(cat ~/.cache/mutt_terms) | head -n 600 | perl -le '@a=<>;chomp@a;s/\^id:// for@a;$,=\"|\";print@a'\`\"<enter>" "show only messages matching a notmuch pattern"
  45. macro index A "<limit>all\n" "show all messages (undo limit)"
  46. # Sidebar mappings
  47. set sidebar_visible = yes
  48. set sidebar_width = 20
  49. set sidebar_short_path = yes
  50. set sidebar_next_new_wrap = yes
  51. set mail_check_stats
  52. set sidebar_format = '%B%?F? [%F]?%* %?N?%N/? %?S?%S?'
  53. bind index,pager \Ck sidebar-prev
  54. bind index,pager \Cj sidebar-next
  55. bind index,pager \Co sidebar-open
  56. bind index,pager <F3> sidebar-page-up
  57. bind index,pager <F4> sidebar-page-down
  58. bind index,pager \Cp sidebar-prev-new
  59. bind index,pager \Cn sidebar-next-new
  60. bind index,pager B sidebar-toggle-visible
  61. source personal.muttrc