aboutsummaryrefslogtreecommitdiff
path: root/config/aerc.conf
blob: c310dfc3c001355b4bd21b54af70a20d09d678c4 (plain)
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
171
172
173
#
# aerc main configuration

[ui]
#
# Describes the format for each row in a mailbox view. This field is compatible
# with mutt's printf-like syntax. TODO: document properly
#
# Default:
index-format=%4C %Z %D %-17.17n %s

#
# See strftime(3)
#
# Default: %F %l:%M %p (ISO 8501 + 12 hour time)
timestamp-format=%F %l:%M %p

#
# Which headers to show when viewing an email.
#
# Default: From,To,Cc,Bcc,Subject,Date
show-headers=From,To,Cc,Bcc,Subject,Date

#
# The frames of animation to use in the UI for things that are still loading.
# Seperate each frame with a comma.
#
# Default: "[..]  , [..] ,  [..], [..] " (note extra spaces)
loading-frames=[..]  , [..] ,  [..], [..] 

#
# One of "on", "off", or "auto".
#
# Default: auto
render-account-tabs=auto

#
# Width of the sidebar, including the border.
#
# Default: 20
sidebar-width=20

#
# Height of the message preview, including the border.
#
# Default: 12
preview-height=12

#
# Message to display when viewing an empty folder.
#
# Default: (no messages)
empty-message=(no messages)

[viewer]
#
# Specifies the pager to use when displaying emails. Note that some filters
# may add ANSI codes to add color to rendered emails, so you may want to use a
# pager which supports ANSI codes.
#
# Default: less -R
pager=less -R

#
# If an email offers several versions (multipart), you can configure which
# mimetype to prefer. For example, this can be used to prefer plaintext over
# html emails.
#
# Default: text/plain,text/html
alternatives=text/plain,text/html

[filters]
#
# Filters allow you to pipe an email body through a shell command to render
# certain emails differently, e.g. highlighting them with ANSI escape codes.
#
# The first filter which matches the email's mimetype will be used, so order
# them from most to least specific.
#
# You can also match on non-mimetypes, by prefixing with the header to match
# against (non-case-sensitive) and a comma, e.g. subject,text will match a
# subject which contains "text". Use header,~regex to match against a regex.
subject,~PATCH=contrib/hldiff.py
text/html=w3m -T text/html -cols $(tput cols) -dump -o display_image=false -o display_link_number=true
text/*=contrib/plaintext.py

[lbinds]
#
# Binds are of the form <input keys> = <output keys>
# Pressing <input keys> in sequence will then simulate pressing <output keys>
#
# Use <C-*> to refer to control+something.
#
# lbinds are effective in the list view
# mbinds are effective in the message view
q = :quit<Enter>
<C-c> = :quit<Enter>

j = :next-message<Enter>
<Down> = :next-message<Enter>
<C-d> = :next-message 50%<Enter>
<C-f> = :next-message 100%<Enter>
<PgDn> = :next-message 100%<Enter>

k = :prev-message<Enter>
<Up> = :prev-message<Enter>
<C-u> = :prev-message 50%<Enter>
<C-b> = :prev-message 100%<Enter>
<PgUp> = :prev-message 100%<Enter>
g = :select-message 0<Enter>
G = :select-message -1<Enter>

J = :next-folder<Enter>
K = :prev-folder<Enter>
l = :next-tab<Enter>
<Right> = :next-tab<Enter>
h = :prev-tab<Enter>
<Left> = :prev-tab<Enter>

<Enter> = :view-message<Enter>
d = :confirm 'Really delete this message?' ':delete-message<Enter>'<Enter>

c = :cf<space>
$ = :term<space>

[mbinds]
#
# Any key not bound is passed through to the sub-terminal.

<Ctrl+h> = :prev-tab<Enter>
<Ctrl+l> = :next-tab<Enter>

[colors]
#
# Colors are configured in one of two ways:
#
# "foreground" or "background:foreground"
#
# You can specify colors according to the base 8 names:
# default, black, red, green, yellow, blue, magenta, cyan, white
#
# or you can use numbers for the 256 color palette,
# e.g. "127:118" (a particularly ugly combination FYI)
#
# Add one or more of the following characters to the beginning
# of the foreground color to add modifiers:
#
# * bold
# _ underline
# ^ reverse
#
# e.g. "default:_*^default" would reverse the default colors and
# with bold and underlined modifiers
borders=default:^default
loading-indicator=default:default

account-unselected=white:black
account-selected=default:default
account-error=red:black

folder-unselected=default:default
folder-selected=white:black

status-line=white:black
status-line-error=red:black

ex-line=default:default

message-list-selected=white:black
message-list-selected-unread=white:_black
message-list-unselected=default:default
message-list-unselected-unread=default:*default
message-list-empty=default:default