aboutsummaryrefslogtreecommitdiffstats
path: root/doc/aerc-config.5.scd
diff options
context:
space:
mode:
authorJason Cox <me@jasoncarloscox.com>2023-10-28 22:08:56 -0400
committerRobin Jarry <robin@jarry.cc>2023-11-23 00:14:12 +0100
commitcb48d5b547e53125857af154b3b0bb921030ba88 (patch)
treeb53e352bc2db515bcfa0ea7bf6b9d2ad95092d38 /doc/aerc-config.5.scd
parent0be34bbb0bdb3045c21ab3352b65c906913d05c8 (diff)
downloadaerc-cb48d5b547e53125857af154b3b0bb921030ba88.tar.gz
compose: define useful vars in the editor's env
Add AERC_ACCOUNT and AERC_ADDRESS_BOOK_CMD to the editor's environment when composing a message. These variables allow for per-account configuration of the editor and facilitate address completion when edit-headers = true. Changelog-added: `AERC_ACCOUNT` and `AERC_ADDRESS_BOOK_CMD` are now defined in the editor's environment when composing a message. Signed-off-by: Jason Cox <me@jasoncarloscox.com> Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'doc/aerc-config.5.scd')
-rw-r--r--doc/aerc-config.5.scd8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/aerc-config.5.scd b/doc/aerc-config.5.scd
index ef35fd12..45c12bd9 100644
--- a/doc/aerc-config.5.scd
+++ b/doc/aerc-config.5.scd
@@ -588,6 +588,14 @@ These options are configured in the *[compose]* section of _aerc.conf_.
embedded terminal, though it may also launch a graphical window if the
environment supports it.
+ The following variables are defined in the editor's environment:
+
+ *AERC_ACCOUNT*
+ the name of the current account
+ *AERC_ADDRESS_BOOK_CMD*
+ the _address-book-cmd_ specified for the current account in
+ _accounts.conf_
+
Defaults to *$EDITOR*, or *vi*(1).
*header-layout* = _<header|layout,list...>_