aerc-stylesets - Man Page

styleset file specification for aerc(1)


aerc uses a simple configuration syntax to configure the styleset for its ui.

Styleset Configuration

Aerc uses a simple configuration file to describe a styleset. The styleset is described as key, value pairs. In each line, the key represents the style object it signifies and the color/attribute of that is modified.

For example, in the line below, the foreground color of the style object "msglist_unread" is set to "cornflowerblue"


The configuration also allows wildcard matching of the style_objects to configure multiple style objects at a time.


The following options are available to be modified for each of the style objects.


The foreground color of the style object is set.

Syntax: `<style_object>.fg=<color>`


The background color of the style object is set.

Syntax: `<style_object>.bg=<color>`


The bold attribute of the style object is set/unset.

Syntax: `<style_object>.bold=<true|false|toggle>`


The blink attribute of the style object is set/unset. The terminal needs to support blinking text

Syntax: `<style_object>.blink=<true|false|toggle>`


The underline attribute of the style object is set/unset. The terminal needs to support underline text

Syntax: `<style_object>.underline=<true|false|toggle>`


Reverses the color of the style object. Exchanges the foreground and background colors.

Syntax: `<style_object>.reverse=<true|false|toggle>` If the value is false, it doesn't change anything


All the attributes of the style object are unset.

Syntax: `<style_object>.normal=<true>` The value doesn't matter


Set the style object to the default style of the context. Usually based on the terminal.

Syntax: `<style_object>.default=<true>` The value doesn't matter

Style Objects

The style objects represent the various ui elements or ui instances for styling.

Style ObjectDescription
defaultThe default style object used for normal ui elements while not using specialized configuration.
errorThe style used to show errors.
warningThe style used when showing warnings.
successThe style used for success messages.
titleThe style object used to style titles in ui elements.
headerThe style object used to style headers in ui elements.
statusline_defaultThe default style applied to the statusline.
statusline_errorThe style used for error messages in statusline.
statusline_successThe style used for success messages in statusline.
msglist_defaultThe default style for messages in a message list.
msglist_unreadUnread messages in a message list.
msglist_readRead messages in a message list.
msglist_flaggedThe messages with the flagged flag.
msglist_deletedThe messages marked as deleted.
msglist_markedThe messages with the marked flag.
dirlist_defaultThe default style for directories in the directory list.
dirlist_unreadThe style used for directories with unread messages
dirlist_recentThe style used for directories with recent messages
completion_defaultThe default style for the completion engine.
completion_gutterThe completion gutter.
completion_pillThe completion pill.
tabThe style for the tab bar.
stackThe style for ui stack element.
spinnerThe style for the loading spinner.
borderThe style used to draw borders. Only the background color is used unless you customize border-char-vertical and/or border-char-horizontal in aerc.conf.
selector_defaultThe default style for the selector ui element.
selector_focusedThe focused item in a selector ui element.
selector_chooserThe item chooser in a selector ui element.

fnmatch style wildcard matching

The styleset configuration can be made simpler by using the fnmatch style wildcard matching for the style object.

The special characters used in the fnmatch wildcards are:

*Matches everything
?Matches any single character

For example, the following wildcards can be made using this syntax.

*.fg=blueSet the foreground color of all style objects to blue.
* the background color of all style objects that end in list to hotpink.

Selected modifier

Selected modifier can be applied to any style object. The style provided for the selected modifier are applied on top of the style object it corresponds to.

If you would like to make sure message that are flagged as read in the msglist appear in yellow foreground and black background. You can specify that with this:


If we specify the global style selected modifier using fnmatch as below:


This toggles the reverse switch for selected version of all the style objects.

Layered styles

Some styles, (currently the `msglist*` and `dirlist*` ones) are applied in layers. If a style differs from the base (in this case `{msglist|dirlist}_default`) then that style applies, unless overridden by a higher layer. The order that `msglist` styles are applied in is, from first to last:


So, the marked style will override all other msglist styles. The order for `dirlist` styles is:



The color values are set using the values accepted by the tcell library. The values can be one of the following.


The color is set as per the system or terminal default.

<Color name>

Any w3c approved color name is used to set colors for the style.

<Hex code>

Hexcode for a color can be used. The format must be "#XXXXXX"

<Dec number>

Color based on the palette index. Valid numbers are between 0 and 255.

See Also

aerc(1) aerc-config(5)


Originally created by Drew DeVault <> and maintained by Robin Jarry <> who is assisted by other open source contributors. For more information about aerc development, see

Referenced By