diff options
| author | Hsieh Chin Fan <typebrook@gmail.com> | 2022-06-30 11:50:50 +0800 |
|---|---|---|
| committer | Hsieh Chin Fan <typebrook@gmail.com> | 2022-06-30 18:07:47 +0800 |
| commit | 0af7dc7c27de55d318617e65a4dd4c35e8cf59a5 (patch) | |
| tree | 3a69fc986dfff9bda5bbb77f0f15da8c4f5a62ee /mutt/default | |
| parent | edbbe5d7f29bd44b0defab3cf44b6211562134dd (diff) | |
Update muttrc
Diffstat (limited to 'mutt/default')
| -rw-r--r-- | mutt/default | 144 |
1 files changed, 144 insertions, 0 deletions
diff --git a/mutt/default b/mutt/default new file mode 100644 index 0000000..8c8e5d6 --- /dev/null +++ b/mutt/default | |||
| @@ -0,0 +1,144 @@ | |||
| 1 | # Default settings | ||
| 2 | set header_cache = "~/.cache/mutt" | ||
| 3 | set message_cachedir = "~/.cache/mutt" | ||
| 4 | set edit_headers=yes | ||
| 5 | |||
| 6 | # Interface | ||
| 7 | set editor = "vim" | ||
| 8 | set charset = "utf-8" | ||
| 9 | set send_charset = "us-ascii:utf-8" | ||
| 10 | set header = no | ||
| 11 | set pager_stop | ||
| 12 | set sleep_time = 0 # When changing folder | ||
| 13 | set timeout = 10 | ||
| 14 | set quit = ask-no | ||
| 15 | set sort = reverse-threads | ||
| 16 | set pager_index_lines = 5 | ||
| 17 | set markers = no # Remove '+' for long links with limited terminal width | ||
| 18 | set index_format = "%4C %8Y %Z %(%b %d) %-15.15L (%?l?%4l&%4c?) %s" | ||
| 19 | |||
| 20 | # Vim-style key binding, \c means Ctrl | ||
| 21 | # ref: https://fancyseeker.github.io/2015/08/19/mutt/#vim%E9%A3%8E%E6%A0%BC%E9%94%AE%E4%BD%8D%E7%BB%91%E5%AE%9A | ||
| 22 | bind index <Return> sync-mailbox | ||
| 23 | bind index q browse-mailboxes | ||
| 24 | bind index y edit-label | ||
| 25 | bind index x tag-entry | ||
| 26 | bind index t edit-label | ||
| 27 | bind index,browser l select-entry | ||
| 28 | bind index \\ limit | ||
| 29 | bind index \cj next-entry | ||
| 30 | bind index \ck previous-entry | ||
| 31 | bind index,browser G last-entry | ||
| 32 | bind index,browser g noop | ||
| 33 | bind index,browser gg first-entry | ||
| 34 | bind index \cf next-page | ||
| 35 | bind index \cb previous-page | ||
| 36 | bind index \cd half-down | ||
| 37 | bind index \cu half-up | ||
| 38 | bind index } bottom-page | ||
| 39 | bind pager G bottom | ||
| 40 | bind pager g noop | ||
| 41 | bind pager gg top | ||
| 42 | bind pager j next-line | ||
| 43 | bind pager k previous-line | ||
| 44 | bind pager \cf next-page | ||
| 45 | bind pager \cb previous-page | ||
| 46 | bind pager \cd half-down | ||
| 47 | bind pager \cu half-up | ||
| 48 | bind pager \cj next-entry | ||
| 49 | bind pager \ck previous-entry | ||
| 50 | bind attach x view-mailcap | ||
| 51 | macro generic,index,pager \cr ":source ~/.config/mutt/muttrc\n" "Reload mutt's configuration file" | ||
| 52 | macro index <Return> ":exec sync-mailbox\n" "Sync Mailbox" | ||
| 53 | macro index *a "Tall\n" "Select All" | ||
| 54 | macro index *n "\ctall\n" "Deselect All" | ||
| 55 | macro index h "\\all\n" "All messages" | ||
| 56 | macro index d '<tag-prefix><delete-message>' 'Delete' | ||
| 57 | |||
| 58 | # Sidebar | ||
| 59 | set mail_check = 120 | ||
| 60 | set mail_check_stats | ||
| 61 | set imap_check_subscribed | ||
| 62 | set sidebar_visible = yes | ||
| 63 | set sidebar_format = '%B%?F? [%F]?%* %?N?%N/?%S' | ||
| 64 | set sidebar_short_path = yes | ||
| 65 | set sidebar_width = 20 | ||
| 66 | bind index,pager B sidebar-toggle-visible | ||
| 67 | bind index,pager \Cp sidebar-prev | ||
| 68 | bind index,pager \Cn sidebar-next | ||
| 69 | bind index,pager \Co sidebar-open | ||
| 70 | bind index,pager <F5> sidebar-prev-new | ||
| 71 | bind index,pager <F6> sidebar-next-new | ||
| 72 | color indicator cyan black | ||
| 73 | color sidebar_highlight white color8 | ||
| 74 | color sidebar_divider color8 black | ||
| 75 | color sidebar_flagged red black | ||
| 76 | color sidebar_new green black | ||
| 77 | |||
| 78 | # basic colors | ||
| 79 | color normal white black | ||
| 80 | color error red black | ||
| 81 | color tilde white black | ||
| 82 | color message cyan black | ||
| 83 | color markers red black | ||
| 84 | color attachment brightred black | ||
| 85 | color search brightmagenta black | ||
| 86 | color status brightwhite black | ||
| 87 | color indicator white blue | ||
| 88 | color tree magenta black # arrows in threads | ||
| 89 | |||
| 90 | # For list | ||
| 91 | # Highlight mails by their status. For a specific pattern(e.g. ~N), pleas read mutt manual 4.2 | ||
| 92 | color index red black "~A" # all messages | ||
| 93 | color index brightred black "~E" # expired messages | ||
| 94 | color index brightcyan black "~N" # new messages | ||
| 95 | color index brightcyan black "~O" # old messages | ||
| 96 | color index brightmagenta black "~Q" # messages that have been replied to | ||
| 97 | color index white black "~R" # read messages | ||
| 98 | color index brightblue black "~U" # unread messages | ||
| 99 | color index brightblue black "~U~$" # unread, unreferenced messages | ||
| 100 | color index brightblue black "~v" # messages part of a collapsed thread | ||
| 101 | color index brightblue black "~P" # messages from me | ||
| 102 | color index cyan black "~p!~F" # messages to me | ||
| 103 | color index brightgreen black "~N~p!~F" # new messages to me | ||
| 104 | color index brightgreen black "~U~p!~F" # unread messages to me | ||
| 105 | color index brightgreen black "~R~p!~F" # messages to me | ||
| 106 | color index red black "~F" # flagged messages | ||
| 107 | color index red black "~F~p" # flagged messages to me | ||
| 108 | color index red black "~N~F" # new flagged messages | ||
| 109 | color index red black "~N~F~p" # new flagged messages to me | ||
| 110 | color index red black "~U~F~p" # new flagged messages to me | ||
| 111 | color index brightyellow black "~T" # tagged messages | ||
| 112 | color index black brightmagenta "~D" # deleted messages | ||
| 113 | color index white black "~v~(!~N!~O)" # collapsed thread with no unread | ||
| 114 | color index magenta black "~v~(~N|~O)" # collapsed thread with some unread | ||
| 115 | color index magenta black "~N~v~(~N)" # collapsed thread with unread parent | ||
| 116 | color index red white "~v~(~F)!~N" # collapsed thread with flagged, no unread | ||
| 117 | color index yellow white "~v~(~F~N)" # collapsed thread with some unread & flagged | ||
| 118 | color index green white "~N~v~(~F~N)" # collapsed thread with unread parent & flagged | ||
| 119 | color index green white "~N~v~(~F)" # collapsed thread with unread parent, no unread inside, but some flagged | ||
| 120 | color index yellow red "~v~(~D)" # thread with deleted (doesn't differentiate between all or partial) | ||
| 121 | |||
| 122 | # color header | ||
| 123 | color header green black "^(From)" | ||
| 124 | color header brightyellow black "^(Subject)" | ||
| 125 | |||
| 126 | # Set quote's starting symbol | ||
| 127 | set quote_regexp = "^([ ]t]*[|>:}#])+" | ||
| 128 | set quote_regexp = "^([ \t ]*[>])+" | ||
| 129 | |||
| 130 | # Highlight quotes by indent | ||
| 131 | color quoted blue black | ||
| 132 | color quoted1 magenta black | ||
| 133 | color quoted2 cyan black | ||
| 134 | color quoted3 yellow black | ||
| 135 | color quoted4 red black | ||
| 136 | |||
| 137 | # urls | ||
| 138 | color body brightblue black "(^|<| )mailto:[^ ]+@[^ ]( |>|$)" | ||
| 139 | color body brightblue black "(^|<| )(http|https|ftp|file|telnet|news|finger)://[^ ]+( |>|$)" | ||
| 140 | |||
| 141 | # *bold*, _underline_, and /italic/ | ||
| 142 | color body brightcyan black "(^| )\\*[^ ]+\\*( |$)" | ||
| 143 | color body brightcyan black "(^| )_[^ ]+_( |$)" | ||
| 144 | color body brightcyan black "(^| )/[^ ]+/( |$)" | ||