| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Set a variable wl-template-alist, and type C-c C-j or
M-x wl-template-select in the draft buffer.
The format of wl-template-alist is almost the same as
wl-draft-config-alist.
See section 7.1.3 Dynamic Modification of Messages.
(setq wl-template-alist
'(("default"
("From" . wl-from)
("Organization" . "Example Co.Ltd.")
(body . "Hello.\n"))
("report"
(template . "default") ;; (a)
("To" . "boss@example.com")
("Subject" . "Report")
(body-file . "~/work/report.txt")
)
))
|
As you can see, the only difference is item (template) names such as
`default' and `report', instead of a regexp of header.
Because definition of each item is the same as
wl-draft-config-alist, you can call another template, like (a).
Executing the command wl-template-select results in template
selection, but the result differs depending on variable
wl-template-visible-select.
If wl-template-visible-select is t (default), a buffer
window is shown below the draft buffer. You can select a template by
n and p seeing the buffer window.
Press the RET key and the template is actually applied to the draft
buffer. If you press q, nothing is applied. In addition, you can
adjust the window size by wl-template-buffer-lines.
If wl-template-visible-select is nil, you should type the
name of the template in the mini buffer.
If wl-template-select is executed with prefix argument,
inversed value of wl-template-visible-select is used.
As shown in the example in wl-draft-config-alist, you can select
`default' template by writing:
(template . "default") |