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.
 
 
 
 

138 lines
6.4 KiB

  1. # vim: filetype=neomuttrc
  2. # This is the general mutt config which has the settings that all accounts use.
  3. set mailcap_path = ~/.config/mutt/bin/mailcap
  4. set date_format="%y/%m/%d %I:%M"
  5. set index_format="%2C %zs %?X?A& ? %D %-15.15F %s (%-4.4c)"
  6. set sort = 'reverse-date'
  7. set smtp_authenticators = 'gssapi:login'
  8. set query_command = "abook --mutt-query '%s'"
  9. set rfc2047_parameters = yes
  10. set sleep_time = 0 # Pause 0 seconds for informational messages
  11. set markers = no # Disables the `+` displayed at line wraps
  12. set mark_old = no # Unread mail stay unread until read
  13. set mime_forward = yes # attachments are forwarded with mail
  14. set wait_key = no # mutt won't ask "press key to continue"
  15. set fast_reply # skip to compose when replying
  16. set fcc_attach # save attachments with the body
  17. set forward_format = "Fwd: %s" # format of subject when forwarding
  18. set forward_quote # include message in forwards
  19. set reverse_name # reply as whomever it was to
  20. set include # include message in replies
  21. auto_view text/html # automatically show html (mailcap uses w3m)
  22. auto_view application/pgp-encrypted
  23. alternative_order text/plain text/enriched text/html
  24. bind index,pager i noop
  25. bind index,pager g noop
  26. bind index \Cf noop
  27. source personal.muttrc
  28. # General rebindings
  29. bind attach <return> view-mailcap
  30. bind editor <space> noop
  31. bind index G last-entry
  32. bind index gg first-entry
  33. bind pager j next-line
  34. bind pager k previous-line
  35. bind index D delete-message
  36. bind index U undelete-message
  37. bind browser h goto-parent
  38. bind browser l select-entry
  39. bind pager,browser gg top-page
  40. bind pager,browser G bottom-page
  41. bind index,browser d half-down
  42. bind index,browser u half-up
  43. bind index,pager S sync-mailbox
  44. bind index,pager R group-reply
  45. bind index \031 previous-undeleted # Mouse wheel
  46. bind index \005 next-undeleted # Mouse wheel
  47. bind pager \031 previous-line # Mouse wheel
  48. bind pager \005 next-line # Mouse wheel
  49. bind editor <Tab> complete-query
  50. macro index,pager a "|abook --add-email\n" 'add sender to abook'
  51. macro index \Cr "T~U<enter><tag-prefix><clear-flag>N<untag-pattern>.<enter>" "mark all messages as read"
  52. macro index O "<shell-escape>$HOME/.config/mutt/bin/mailsync -Va<enter>" "run offlineimap to sync all mail"
  53. macro index \Cf "<enter-command>unset wait_key<enter><shell-escape>read -p 'Enter a search term to find with notmuch: ' 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"
  54. macro index A "<limit>all\n" "show all messages (undo limit)"
  55. # Sidebar mappings
  56. set sidebar_visible = yes
  57. set sidebar_width = 20
  58. set sidebar_short_path = yes
  59. set sidebar_next_new_wrap = yes
  60. set mail_check_stats
  61. set sidebar_format = '%B%?F? [%F]?%* %?N?%N/? %?S?%S?'
  62. bind index,pager \Ck sidebar-prev
  63. bind index,pager \Cj sidebar-next
  64. bind index,pager \Co sidebar-open
  65. bind index,pager \Cp sidebar-prev-new
  66. bind index,pager \Cn sidebar-next-new
  67. bind index,pager B sidebar-toggle-visible
  68. # Default index colors:
  69. color index yellow default '.*'
  70. color index_author red default '.*'
  71. color index_number blue default
  72. color index_subject cyan default '.*'
  73. # New mail is boldened:
  74. color index brightyellow black "~N"
  75. color index_author brightred black "~N"
  76. color index_subject brightcyan black "~N"
  77. # Other colors and aesthetic settings:
  78. mono bold bold
  79. mono underline underline
  80. mono indicator reverse
  81. mono error bold
  82. color normal default default
  83. color indicator brightblack white
  84. color sidebar_highlight red default
  85. color sidebar_divider brightblack black
  86. color sidebar_flagged red black
  87. color sidebar_new green black
  88. color normal brightyellow default
  89. color error red default
  90. color tilde black default
  91. color message cyan default
  92. color markers red white
  93. color attachment white default
  94. color search brightmagenta default
  95. color status brightyellow black
  96. color hdrdefault brightgreen default
  97. color quoted green default
  98. color quoted1 blue default
  99. color quoted2 cyan default
  100. color quoted3 yellow default
  101. color quoted4 red default
  102. color quoted5 brightred default
  103. color signature brightgreen default
  104. color bold black default
  105. color underline black default
  106. color normal default default
  107. # Regex highlighting:
  108. color header blue default ".*"
  109. color header brightmagenta default "^(From)"
  110. color header brightcyan default "^(Subject)"
  111. color header brightwhite default "^(CC|BCC)"
  112. color body brightred default "[\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+" # Email addresses
  113. color body brightblue default "(https?|ftp)://[\-\.,/%~_:?&=\#a-zA-Z0-9]+" # URL
  114. color body green default "\`[^\`]*\`" # Green text between ` and `
  115. color body brightblue default "^# \.*" # Headings as bold blue
  116. color body brightcyan default "^## \.*" # Subheadings as bold cyan
  117. color body brightgreen default "^### \.*" # Subsubheadings as bold green
  118. color body yellow default "^(\t| )*(-|\\*) \.*" # List items as yellow
  119. color body brightcyan default "[;:][-o][)/(|]" # emoticons
  120. color body brightcyan default "[;:][)(|]" # emoticons
  121. color body brightcyan default "[ ][*][^*]*[*][ ]?" # more emoticon?
  122. color body brightcyan default "[ ]?[*][^*]*[*][ ]" # more emoticon?
  123. color body red default "(BAD signature)"
  124. color body cyan default "(Good signature)"
  125. color body brightblack default "^gpg: Good signature .*"
  126. color body brightyellow default "^gpg: "
  127. color body brightyellow red "^gpg: BAD signature from.*"
  128. mono body bold "^gpg: Good signature"
  129. mono body bold "^gpg: BAD signature from.*"
  130. color body red default "([a-z][a-z0-9+-]*://(((([a-z0-9_.!~*'();:&=+$,-]|%[0-9a-f][0-9a-f])*@)?((([a-z0-9]([a-z0-9-]*[a-z0-9])?)\\.)*([a-z]([a-z0-9-]*[a-z0-9])?)\\.?|[0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+)(:[0-9]+)?)|([a-z0-9_.!~*'()$,;:@&=+-]|%[0-9a-f][0-9a-f])+)(/([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*(;([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*)*(/([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*(;([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*)*)*)?(\\?([a-z0-9_.!~*'();/?:@&=+$,-]|%[0-9a-f][0-9a-f])*)?(#([a-z0-9_.!~*'();/?:@&=+$,-]|%[0-9a-f][0-9a-f])*)?|(www|ftp)\\.(([a-z0-9]([a-z0-9-]*[a-z0-9])?)\\.)*([a-z]([a-z0-9-]*[a-z0-9])?)\\.?(:[0-9]+)?(/([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*(;([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*)*(/([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*(;([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*)*)*)?(\\?([-a-z0-9_.!~*'();/?:@&=+$,]|%[0-9a-f][0-9a-f])*)?(#([-a-z0-9_.!~*'();/?:@&=+$,]|%[0-9a-f][0-9a-f])*)?)[^].,:;!)? \t\r\n<>\"]"