aboutsummaryrefslogtreecommitdiff
path: root/mutt/muttrc
blob: fc04886f9f3febe9cce1eadfb10166a20e0d36ba (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
# Addresses
set query_command = 'abook --mutt-query %s'
set reverse_name
set use_domain
set use_from

# Alerts
set beep_new

# Attachments
attachments +A */.*
attachments -A text/x-vcard application/pgp.*
attachments -A application/x-pkcs7-.*
attachments +I text/plain
attachments -A message/external-body
attachments -I message/external-body

# Caching
set header_cache = '~/.cache/mutt/headers'

# Colors
color attachment brightyellow default
color hdrdefault cyan default
color indicator black white
color markers brightred default
color normal default default
color quoted green default
color signature cyan default
color status default color22
color tilde brightblack default
color tree default default

# Completion
bind editor <Tab> complete-query
bind editor ^T complete

# Files
set delete = ask-yes
unset move

# Flags
unset mark_old

# Headers
ignore *
unignore Date: From: To: Cc: Bcc: Subject:
hdr_order Date: From: To: Cc: Bcc: Subject:
set edit_headers

# Index
set index_format = '%4C %Z %{%b %d %Y} %-15.15L (%?l?%4l&%4c?) %?H?[%H] ?%s'

# Interaction
unset abort_unmodified
unset confirmappend
unset wait_key
set quit = ask-yes

# Intervals
set mail_check = 5
set sleep_time = 0

# Mailboxes
set confirmcreate

# Menus
set menu_context = 1

# MIME
mime_lookup application/octet-stream

# Pager
set pager_context = 1
set pager_format = '%4C %Z %[!%b %e at %I:%M %p] %.20n %s%* -- (%P)'
set pager_stop

# Presentation/formatting
unset markers
set smart_wrap
set text_flowed
set tilde
alternative_order text/plain text/html *
auto_view text/html

# Quoting
set quote_regexp = '^(>[ \t]*)+'

# Responses
set fast_reply
set forward_attachments
set forward_format = 'Fw: %s'
set include
set use_envelope_from

# Searching/sorting
set sort = 'threads'
set sort_aux = 'last-date-received'
set strict_threads
set thorough_search

# SSH
set time_inc = 250

# Encryption settings
set crypt_replysign
set crypt_replyencrypt
set crypt_replysignencrypted
set crypt_use_gpgme
set crypt_use_pka
set crypt_verify_sig

# Do decode classic PGP messages, though we'll never write them
set pgp_auto_decode

# Vim-ish bindings
bind index gg first-entry
bind index G last-entry
bind pager gg top
bind pager G bottom
bind index,pager \Cu half-up
bind index,pager \Cd half-down
bind generic,index,browser,pager \Cf next-page
bind generic,index,browser,pager \Cb previous-page

# Turn off annoying mailbox lock feature
bind index '%' noop

# Swap j/k (next/prev undeleted) with J/K (next/prev item)
bind index j next-entry
bind index k previous-entry
bind index J next-undeleted
bind index K previous-undeleted

# Shortcuts to jump to mailboxes
macro generic,index,browser,pager gi \
	'<change-folder>!<enter>' \
	'Change to inbox'
macro generic,index,browser,pager gs \
	'<change-folder><<enter>' \
	'Change to sent'
macro generic,index,browser,pager gb \
	'<change-folder>-<enter>' \
	'Change to previous'
# The format here is pretty weird, but it copes correctly with changes to the
# variable that occur *after* the macro is defined, and there isn't
# a punctuation shortcut for it like there is for the previous three.  I'd love
# to know if there's a better way to do this that I've missed in the manual.
macro generic,index,browser,pager gd '\
<enter-command>push "<change-folder>$postponed"<enter><enter>' \
	'Change to drafts'

# Blindly save message to whatever box is suggested
macro index,pager S \
	'<save-message><enter>' \
	'Save message blindly'

# Shortcut to add addresses to abook
macro index,pager A \
	'<pipe-message>abook --add-email-quiet<enter>' \
	'Add sender address to abook'

# Shortcut to reload configuration
macro generic,index,browser,pager \\R '\
<enter-command>unhook *<enter>\
<enter-command>source $alias_file<enter>\
<enter-command>echo "Reloaded with $alias_file"<enter>' \
	"Clear hooks and reload"

# Machine or account specific settings
source ~/.config/mutt/muttrc.d/src|