···11diff --git a/config/aerc.conf b/config/aerc.conf
22-index 7d33b43..4315f0e 100644
22+index fbc1f3ba..9eea2b81 100644
33--- a/config/aerc.conf
44+++ b/config/aerc.conf
55-@@ -202,8 +202,7 @@
55+@@ -301,8 +301,7 @@
66 #
77 # ${XDG_CONFIG_HOME:-~/.config}/aerc/stylesets
88 # ${XDG_DATA_HOME:-~/.local/share}/aerc/stylesets
···1212 #
1313 #stylesets-dirs=
14141515-@@ -547,8 +546,7 @@ message/rfc822=colorize
1515+@@ -741,8 +740,8 @@
1616+ # ${XDG_DATA_HOME:-~/.local/share}/aerc/filters
1717+ # $PREFIX/libexec/aerc/filters
1818+ # $PREFIX/share/aerc/filters
1919+-# /usr/libexec/aerc/filters
2020+-# /usr/share/aerc/filters
2121++# @out@/libexec/aerc/filters
2222++# @out@/share/aerc/filters
2323+ #
2424+ # If you want to run a program in your default $PATH which has the same name
2525+ # as a builtin filter (e.g. /usr/bin/colorize), use its absolute path.
2626+@@ -845,8 +844,7 @@ text/html=! html
1627 #
1728 # ${XDG_CONFIG_HOME:-~/.config}/aerc/templates
1829 # ${XDG_DATA_HOME:-~/.local/share}/aerc/templates
···2334 #template-dirs=
24352536diff --git a/config/config.go b/config/config.go
2626-index d70bcfe..c19e59a 100644
3737+index 14c4b233..9f305ffd 100644
2738--- a/config/config.go
2839+++ b/config/config.go
2929-@@ -54,10 +54,8 @@ func buildDefaultDirs() []string {
4040+@@ -46,10 +46,8 @@ func buildDefaultDirs() []string {
3041 }
31423243 // Add fixed fallback locations
···4051 return defaultDirs
4152 }
4253diff --git a/doc/aerc-config.5.scd b/doc/aerc-config.5.scd
4343-index 9e1f8a3..694abbc 100644
5454+index 1e3daaa9..cd118be0 100644
4455--- a/doc/aerc-config.5.scd
4556+++ b/doc/aerc-config.5.scd
4646-@@ -300,8 +300,7 @@ These options are configured in the *[ui]* section of _aerc.conf_.
5757+@@ -13,7 +13,7 @@ _aerc_, which defaults to _~/.config/aerc_. Alternate files can be specified via
5858+ command line arguments, see *aerc*(1).
5959+6060+ Examples of these config files are typically included with your installation of
6161+-aerc and are usually installed in _/usr/share/aerc_.
6262++aerc and are usually installed in _@out@/share/aerc_.
6363+6464+ Each file uses the ini format, and consists of sections with keys and values.
6565+ A line beginning with _#_ is considered a comment and ignored, as are empty
6666+@@ -386,8 +386,7 @@ These options are configured in the *[ui]* section of _aerc.conf_.
4767 ```
4868 ${XDG_CONFIG_HOME:-~/.config}/aerc/stylesets
4969 ${XDG_DATA_HOME:-~/.local/share}/aerc/stylesets
···5373 ```
54745575 *styleset-name* = _<string>_
5656-@@ -900,8 +899,7 @@ These options are configured in the *[templates]* section of _aerc.conf_.
7676+@@ -1019,7 +1018,7 @@ will be set to the terminal TTY. The filter is expected to implement its own
7777+ paging.
7878+7979+ aerc ships with some default filters installed in the libexec directory (usually
8080+-_/usr/libexec/aerc/filters_). Note that these may have additional dependencies
8181++_@out@/libexec/aerc/filters_). Note that these may have additional dependencies
8282+ that aerc does not have alone.
8383+8484+ The filter commands are invoked with _sh -c command_. The following folders are
8585+@@ -1031,8 +1030,8 @@ ${XDG_CONFIG_HOME:-~/.config}/aerc/filters
8686+ ${XDG_DATA_HOME:-~/.local/share}/aerc/filters
8787+ $PREFIX/libexec/aerc/filters
8888+ $PREFIX/share/aerc/filters
8989+-/usr/libexec/aerc/filters
9090+-/usr/share/aerc/filters
9191++@out@/libexec/aerc/filters
9292++@out@/share/aerc/filters
9393+ ```
9494+9595+ If you want to run a program in your default *$PATH* which has the same
9696+@@ -1370,7 +1369,7 @@ of the template name. The available symbols and functions are described in
9797+ *aerc-templates*(7).
9898+9999+ aerc ships with some default templates installed in the share directory (usually
100100+-_/usr/share/aerc/templates_).
101101++_@out@/share/aerc/templates_).
102102+103103+ These options are configured in the *[templates]* section of _aerc.conf_.
104104+105105+@@ -1382,8 +1381,7 @@ These options are configured in the *[templates]* section of _aerc.conf_.
57106 ```
58107 ${XDG_CONFIG_HOME:-~/.config}/aerc/templates
59108 ${XDG_DATA_HOME:-~/.local/share}/aerc/templates
···6411365114 *new-message* = _<template_name>_
66115diff --git a/doc/aerc-templates.7.scd b/doc/aerc-templates.7.scd
6767-index ae9bc6d..5f42b14 100644
116116+index a6deb584..4f91869c 100644
68117--- a/doc/aerc-templates.7.scd
69118+++ b/doc/aerc-templates.7.scd
7070-@@ -319,7 +319,7 @@ aerc provides the following additional functions:
7171- Execute external command, provide the second argument to its stdin.
119119+@@ -398,7 +398,7 @@ aerc provides the following additional functions:
120120+ Attaches a file to the message being composed.
7212173122 ```
7474-- {{exec `/usr/libexec/aerc/filters/html` .OriginalText}}
7575-+ {{exec `@out@/libexec/aerc/filters/html` .OriginalText}}
123123+- {{.Attach '/usr/libexec/aerc/filters/html'}}
124124++ {{.Attach '@out@/libexec/aerc/filters/html'}}
76125 ```
771267878- *.Local*
7979-@@ -425,7 +425,7 @@ aerc provides the following additional functions:
127127+ *exec*
128128+@@ -581,7 +581,7 @@ aerc provides the following additional functions:
8012981130 ```
82131 {{if eq .OriginalMIMEType "text/html"}}