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