-
Notifications
You must be signed in to change notification settings - Fork 0
/
muttrc
117 lines (81 loc) · 3.06 KB
/
muttrc
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
##############################################################################
#
# Generic config
#
##############################################################################
# Check mail interval and timeout
set mail_check=10
set timeout=15
# Stop asking to "move read messages to mbox"
set move=no
# Don't ask for confirmation when appending messages to an existing mailbox
unset confirmappend
# Don't mark unread messages as Old
unset mark_old
# Always apply all operations to currently tagged messages
# This is not great because it gets ignored in the pager
set auto_tag
# Format for the subject line of forwarded messages
set forward_format="Fwd: %s"
# Include body of previous message in a reply
set include=yes
# Skip all the questions when replying
set fast_reply
# Use format=flowed for nicer line breaks
set text_flowed=yes
# Set the record folder to be the current folder
folder-hook . set record=^
# Edit headers in vim when composing mail, and don't prompt
#set edit_headers=yes
#set autoedit=yes
##############################################################################
# Index config
#
set sort=threads
set sort_aux=reverse-last-date-received
set sort_browser=reverse-date
set index_format=" %Z %-4C %{%b %d} %-15.15L %s"
color index brightwhite default ~N # bold new messages
# Format the folder list
set folder_format="%2C %f %> %N "
##############################################################################
# Pager config
#
# Don't switch to next message automatically
set pager_stop
# Show 15 lines fo the index when viewing mail.
set pager_index_lines=15
##############################################################################
# Key bindings
#
# Follow urls by hitting Ctrl-u
macro pager \cu <pipe-entry>'urlview'<enter> 'Follow links'
macro pager <down> <next-line>
macro pager <up> <previous-line>
# Shift-J to jump to folder
macro index,pager J <change-folder>
# tilde to jump to Inbox
macro index,pager ~ <change-folder><kill-line>=Inbox<enter>
# the pager doesn't support tag-prefix (and therefore also ignores auto_tag)
# when saving messages, etc. (see http://dev.mutt.org/trac/ticket/3327). So
# to work around this, make 's' in the pager, quit back to the index before
# saving message.
macro pager s <exit><save-message>
# In index, 'q' will switch to mailbox browser, when in mailbox browser
# 'q' will quit mutt.
macro index q '<change-folder>?<toggle-mailboxes>'
macro browser q '<exit><quit>'
# d moves messages to Trash
folder-hook . "macro index,pager d '<save-message>=Trash<enter>"
folder-hook =Trash "macro index,pager d <delete-message>"
macro editor <tab> '<complete-query>'
bind attach <return> view-mailcap
##############################################################################
# HTML handling
#
auto_view text/html # view html attachments automatically
##############################################################################
# Editor config
#
# Use vim as an editor and make it spellcheck and use format=flowed
set editor="vim -c 'set spell spelllang=en | setlocal fo+=aw | set ft=mail' %s