summaryrefslogtreecommitdiff
path: root/message-templ.el
diff options
context:
space:
mode:
Diffstat (limited to 'message-templ.el')
-rw-r--r--message-templ.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/message-templ.el b/message-templ.el
index a2f54c7..d9d1a5b 100644
--- a/message-templ.el
+++ b/message-templ.el
@@ -62,7 +62,8 @@ Remaining elements indicate actions."
:type '(repeat (list (string :tag "Header Regex")
(repeat
:inline t
- (choice (cons (sexp :tag "Field(Variable)")
+ (choice (string :tag "Template")
+ (cons (sexp :tag "Field(Variable)")
(sexp :tag "Value"))
(sexp :tag "Function")))))
:group 'message-templ)
@@ -201,6 +202,8 @@ Remaining elements indicate actions."
(while clist
(setq config (car clist))
(cond
+ ((stringp config)
+ (message-templ-apply config))
((functionp config)
(funcall config))
((consp config)