Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 

145 rader
6.5 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/mailcap
  4. set date_format="%y/%m/%d %I:%M%p"
  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. # General rebindings
  28. bind attach <return> view-mailcap
  29. bind attach l view-mailcap
  30. bind editor <space> noop
  31. bind index G last-entry
  32. bind index gg first-entry
  33. bind pager,attach h exit
  34. bind pager j next-line
  35. bind pager k previous-line
  36. bind pager l view-attachments
  37. bind index D delete-message
  38. bind index U undelete-message
  39. bind index L limit
  40. bind index h noop
  41. bind index l display-message
  42. bind browser h goto-parent
  43. bind browser l select-entry
  44. bind pager,browser gg top-page
  45. bind pager,browser G bottom-page
  46. bind index,browser d half-down
  47. bind index,browser u half-up
  48. bind index,pager S sync-mailbox
  49. bind index,pager R group-reply
  50. bind index \031 previous-undeleted # Mouse wheel
  51. bind index \005 next-undeleted # Mouse wheel
  52. bind pager \031 previous-line # Mouse wheel
  53. bind pager \005 next-line # Mouse wheel
  54. bind editor <Tab> complete-query
  55. macro index,pager a "|abook --add-email\n" 'add sender to abook'
  56. macro index \Cr "T~U<enter><tag-prefix><clear-flag>N<untag-pattern>.<enter>" "mark all messages as read"
  57. macro index O "<shell-escape>mailsync -Va<enter>" "run offlineimap to sync all mail"
  58. 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"
  59. macro index A "<limit>all\n" "show all messages (undo limit)"
  60. # Sidebar mappings
  61. set sidebar_visible = yes
  62. set sidebar_width = 20
  63. set sidebar_short_path = yes
  64. set sidebar_next_new_wrap = yes
  65. set mail_check_stats
  66. set sidebar_format = '%B%?F? [%F]?%* %?N?%N/? %?S?%S?'
  67. bind index,pager \Ck sidebar-prev
  68. bind index,pager \Cj sidebar-next
  69. bind index,pager \Co sidebar-open
  70. bind index,pager \Cp sidebar-prev-new
  71. bind index,pager \Cn sidebar-next-new
  72. bind index,pager B sidebar-toggle-visible
  73. # Default index colors:
  74. color index yellow default '.*'
  75. color index_author red default '.*'
  76. color index_number blue default
  77. color index_subject cyan default '.*'
  78. # New mail is boldened:
  79. color index brightyellow black "~N"
  80. color index_author brightred black "~N"
  81. color index_subject brightcyan black "~N"
  82. # Other colors and aesthetic settings:
  83. mono bold bold
  84. mono underline underline
  85. mono indicator reverse
  86. mono error bold
  87. color normal default default
  88. color indicator brightblack white
  89. color sidebar_highlight red default
  90. color sidebar_divider brightblack black
  91. color sidebar_flagged red black
  92. color sidebar_new green black
  93. color normal brightyellow default
  94. color error red default
  95. color tilde black default
  96. color message cyan default
  97. color markers red white
  98. color attachment white default
  99. color search brightmagenta default
  100. color status brightyellow black
  101. color hdrdefault brightgreen default
  102. color quoted green default
  103. color quoted1 blue default
  104. color quoted2 cyan default
  105. color quoted3 yellow default
  106. color quoted4 red default
  107. color quoted5 brightred default
  108. color signature brightgreen default
  109. color bold black default
  110. color underline black default
  111. color normal default default
  112. # Regex highlighting:
  113. color header blue default ".*"
  114. color header brightmagenta default "^(From)"
  115. color header brightcyan default "^(Subject)"
  116. color header brightwhite default "^(CC|BCC)"
  117. color body brightred default "[\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+" # Email addresses
  118. color body brightblue default "(https?|ftp)://[\-\.,/%~_:?&=\#a-zA-Z0-9]+" # URL
  119. color body green default "\`[^\`]*\`" # Green text between ` and `
  120. color body brightblue default "^# \.*" # Headings as bold blue
  121. color body brightcyan default "^## \.*" # Subheadings as bold cyan
  122. color body brightgreen default "^### \.*" # Subsubheadings as bold green
  123. color body yellow default "^(\t| )*(-|\\*) \.*" # List items as yellow
  124. color body brightcyan default "[;:][-o][)/(|]" # emoticons
  125. color body brightcyan default "[;:][)(|]" # emoticons
  126. color body brightcyan default "[ ][*][^*]*[*][ ]?" # more emoticon?
  127. color body brightcyan default "[ ]?[*][^*]*[*][ ]" # more emoticon?
  128. color body red default "(BAD signature)"
  129. color body cyan default "(Good signature)"
  130. color body brightblack default "^gpg: Good signature .*"
  131. color body brightyellow default "^gpg: "
  132. color body brightyellow red "^gpg: BAD signature from.*"
  133. mono body bold "^gpg: Good signature"
  134. mono body bold "^gpg: BAD signature from.*"
  135. 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<>\"]"
  136. source personal.muttrc