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.
 
 
 
 

152 lines
6.5 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 personal.muttrc
  7. set sleep_time = 0
  8. set sort = 'reverse-date'
  9. set editor = $EDITOR
  10. #set copy = no
  11. set timeout = "5"
  12. set mail_check = "10"
  13. set mailcap_path = ~/.config/mutt/bin/mailcap
  14. set date_format="%y/%m/%d %I:%M"
  15. set index_format="%2C %zs %?X?A& ? %D %-15.15F %s (%-4.4c)"
  16. set markers = no
  17. set mark_old = no
  18. set mime_forward = yes
  19. set smtp_authenticators = 'gssapi:login'
  20. set wait_key = no
  21. auto_view text/html
  22. auto_view application/pgp-encrypted
  23. alternative_order text/plain text/enriched text/html
  24. set rfc2047_parameters = yes
  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 browser h goto-parent
  32. bind browser l select-entry
  33. bind pager,browser gg top-page
  34. bind pager,browser G bottom-page
  35. bind index,browser d half-down
  36. bind index,browser u half-up
  37. bind index D delete-message
  38. bind index U undelete-message
  39. bind index,browser F search
  40. bind index,pager R group-reply
  41. bind index \031 previous-undeleted # Mouse wheel
  42. bind index \005 next-undeleted # Mouse wheel
  43. bind pager \031 previous-line # Mouse wheel
  44. bind pager \005 next-line # Mouse wheel
  45. macro index,pager S <sync-mailbox>
  46. set query_command= "abook --mutt-query '%s'"
  47. bind editor <Tab> complete-query
  48. # View attachments properly.
  49. bind attach <return> view-mailcap
  50. set fast_reply # skip to compose when replying
  51. set fcc_attach # save attachments with the body
  52. unset mime_forward # forward attachments as part of body
  53. set forward_format = "Fwd: %s" # format of subject when forwarding
  54. set forward_decode # decode when forwarding
  55. set forward_quote # include message in forwards
  56. set reverse_name # reply as whomever it was to
  57. set include # include message in replies
  58. #Ctrl-R to mark all as read
  59. macro index \Cr "T~U<enter><tag-prefix><clear-flag>N<untag-pattern>.<enter>" "mark all messages as read"
  60. #sync email
  61. macro index O "<shell-escape>$HOME/.config/mutt/bin/mailsync<enter>" "run offlineimap to sync all mail"
  62. macro index o "<shell-escape>$HOME/.config/mutt/bin/mailsync -qf INBOX<enter>" "run offlineimap to sync inbox"
  63. # Notmuch searching
  64. 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"
  65. macro index A "<limit>all\n" "show all messages (undo limit)"
  66. # Sidebar mappings
  67. set sidebar_visible = yes
  68. set sidebar_width = 20
  69. set sidebar_short_path = yes
  70. set sidebar_next_new_wrap = yes
  71. set mail_check_stats
  72. set sidebar_format = '%B%?F? [%F]?%* %?N?%N/? %?S?%S?'
  73. bind index,pager \Ck sidebar-prev
  74. bind index,pager \Cj sidebar-next
  75. bind index,pager \Co sidebar-open
  76. bind index,pager \Cp sidebar-prev-new
  77. bind index,pager \Cn sidebar-next-new
  78. bind index,pager B sidebar-toggle-visible
  79. # Default index colors:
  80. color index yellow default '.*'
  81. color index_author red default '.*'
  82. color index_number blue default
  83. color index_subject cyan default '.*'
  84. # For new mail:
  85. color index brightyellow black "~N"
  86. color index_author brightred black "~N"
  87. color index_subject brightcyan black "~N"
  88. # Header colors:
  89. color header blue default ".*"
  90. color header brightmagenta default "^(From)"
  91. color header brightcyan default "^(Subject)"
  92. color header brightwhite default "^(CC|BCC)"
  93. mono bold bold
  94. mono underline underline
  95. mono indicator reverse
  96. mono error bold
  97. color normal default default
  98. color indicator brightblack white
  99. color sidebar_highlight red default
  100. color sidebar_divider brightblack black
  101. color sidebar_flagged red black
  102. color sidebar_new green black
  103. color normal brightyellow default
  104. color error red default
  105. color tilde black default
  106. color message cyan default
  107. color markers red white
  108. color attachment white default
  109. color search brightmagenta default
  110. color status brightyellow black
  111. color hdrdefault brightgreen default
  112. color quoted green default
  113. color quoted1 blue default
  114. color quoted2 cyan default
  115. color quoted3 yellow default
  116. color quoted4 red default
  117. color quoted5 brightred default
  118. color signature brightgreen default
  119. color bold black default
  120. color underline black default
  121. color normal default default
  122. color body brightred default "[\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+" # Email addresses
  123. color body brightblue default "(https?|ftp)://[\-\.,/%~_:?&=\#a-zA-Z0-9]+" # URL
  124. color body green default "\`[^\`]*\`" # Green text between ` and `
  125. color body brightblue default "^# \.*" # Headings as bold blue
  126. color body brightcyan default "^## \.*" # Subheadings as bold cyan
  127. color body brightgreen default "^### \.*" # Subsubheadings as bold green
  128. color body yellow default "^(\t| )*(-|\\*) \.*" # List items as yellow
  129. color body brightcyan default "[;:][-o][)/(|]" # emoticons
  130. color body brightcyan default "[;:][)(|]" # emoticons
  131. color body brightcyan default "[ ][*][^*]*[*][ ]?" # more emoticon?
  132. color body brightcyan default "[ ]?[*][^*]*[*][ ]" # more emoticon?
  133. color body red default "(BAD signature)"
  134. color body cyan default "(Good signature)"
  135. color body brightblack default "^gpg: Good signature .*"
  136. color body brightyellow default "^gpg: "
  137. color body brightyellow red "^gpg: BAD signature from.*"
  138. mono body bold "^gpg: Good signature"
  139. mono body bold "^gpg: BAD signature from.*"
  140. 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<>\"]"