diff options
author | Jason Cox <me@jasoncarloscox.com> | 2023-10-28 22:08:56 -0400 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-11-23 00:14:12 +0100 |
commit | cb48d5b547e53125857af154b3b0bb921030ba88 (patch) | |
tree | b53e352bc2db515bcfa0ea7bf6b9d2ad95092d38 /doc/aerc-config.5.scd | |
parent | 0be34bbb0bdb3045c21ab3352b65c906913d05c8 (diff) | |
download | aerc-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.scd | 8 |
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...>_ |