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.
 
 
 
 

85 lines
3.0 KiB

  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 = $EDITOR
  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 %Z %?X?A& ? %D %-15.15F %s (%-4.4c)"
  17. set markers = no
  18. set mark_old = no
  19. set mime_forward = yes
  20. set smtp_authenticators = 'gssapi:login'
  21. auto_view text/html
  22. auto_view application/pdf
  23. alternative_order text/plain text/enriched text/html
  24. # General remappings
  25. bind editor <space> noop
  26. bind index G last-entry
  27. bind index gg first-entry
  28. bind pager j next-line
  29. bind pager k previous-line
  30. bind pager gg top
  31. bind pager G bottom
  32. bind index d half-down
  33. bind index u half-up
  34. bind index D delete-message
  35. bind index U undelete-message
  36. bind index F search
  37. bind index,pager R group-reply
  38. macro index,pager S '<sync-mailbox>
  39. macro index,pager \Cu |urlview\n
  40. # View attachments properly.
  41. bind attach <return> view-mailcap
  42. set fast_reply # skip to compose when replying
  43. set fcc_attach # save attachments with the body
  44. unset mime_forward # forward attachments as part of body
  45. set forward_format = "Fwd: %s" # format of subject when forwarding
  46. set forward_decode # decode when forwarding
  47. set forward_quote # include message in forwards
  48. set reverse_name # reply as whomever it was to
  49. set include # include message in replies
  50. #Ctrl-R to mark all as read
  51. macro index \Cr "T~U<enter><tag-prefix><clear-flag>N<untag-pattern>.<enter>" "mark all messages as read"
  52. #sync email
  53. macro index O "<shell-escape>offlineimap<enter>" "run offlineimap to sync all mail"
  54. macro index o "<shell-escape>offlineimap -qf INBOX<enter>" "run offlineimap to sync inbox"
  55. #copy/move dialogs
  56. macro index C "<copy-message>?<toggle-mailboxes>" "copy a message to a mailbox"
  57. macro index M "<save-message>?<toggle-mailboxes>" "move a message to a mailbox"
  58. # Notmuch searching
  59. 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"
  60. macro index A "<limit>all\n" "show all messages (undo limit)"
  61. # Sidebar mappings
  62. set sidebar_visible = yes
  63. set sidebar_width = 20
  64. set sidebar_short_path = yes
  65. set sidebar_next_new_wrap = yes
  66. set mail_check_stats
  67. set sidebar_format = '%B%?F? [%F]?%* %?N?%N/? %?S?%S?'
  68. bind index,pager \Ck sidebar-prev
  69. bind index,pager \Cj sidebar-next
  70. bind index,pager \Co sidebar-open
  71. bind index,pager <F3> sidebar-page-up
  72. bind index,pager <F4> sidebar-page-down
  73. bind index,pager \Cp sidebar-prev-new
  74. bind index,pager \Cn sidebar-next-new
  75. bind index,pager B sidebar-toggle-visible
  76. source personal.muttrc