diff options
author | Robin Jarry <robin@jarry.cc> | 2022-01-19 21:28:06 +0100 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-01-19 21:42:41 +0100 |
commit | 877a94f5d9a7852af5fbcfd1196a4b1f4c676564 (patch) | |
tree | 798e640ec50520cdd040570ecf1f16fb911a1e2f /config/config.go | |
parent | 92bf89c3389b8e08cf99d30cf20a818529680f51 (diff) | |
download | aerc-877a94f5d9a7852af5fbcfd1196a4b1f4c676564.tar.gz |
compose: add default template for new messages
Allow defining a default template to use when composing new messages.
Add an example to be used for new users.
Signed-off-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'config/config.go')
-rw-r--r-- | config/config.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/config/config.go b/config/config.go index 0472daff..2e1d5893 100644 --- a/config/config.go +++ b/config/config.go @@ -146,6 +146,7 @@ type TriggersConfig struct { type TemplateConfig struct { TemplateDirs []string `ini:"template-dirs", delim:":"` + NewMessage string `ini:"new-message"` QuotedReply string `ini:"quoted-reply"` Forwards string `ini:"forwards"` } @@ -595,6 +596,7 @@ func LoadConfigFromFile(root *string, sharedir string) (*AercConfig, error) { Templates: TemplateConfig{ TemplateDirs: []string{path.Join(sharedir, "templates")}, + NewMessage: "new_message", QuotedReply: "quoted_reply", Forwards: "forward_as_body", }, |