diff options
Diffstat (limited to 'example.emacs.el')
-rw-r--r-- | example.emacs.el | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/example.emacs.el b/example.emacs.el new file mode 100644 index 0000000..6be08a2 --- /dev/null +++ b/example.emacs.el @@ -0,0 +1,22 @@ +(define-key message-mode-map "\C-cs" 'message-templ-select) + +(setq message-templ-config-alist '(("^To:.*notmuch@notmuchmail.org" + (lambda () + (message-templ-apply "alternate")) + ("X-List-To" . "notmuch")))) + +(setq message-templ-config-alist '(("^To:.*notmuch@notmuchmail.org" my-func))) + +(setq message-templ-alist '(("alternate" + ("From" . "David Bremner <david@example.com>") + ("Bcc" . "david@example.com")) + ("student-inquiry" + ("Subject" . "Your inquiry about foo") + (body-file . "~/config/dat/student09.txt")) + ("course-marks" + ("Subject" . "Marks for CSXXXX") + ("Bcc" . "david@example.com") + (top-file . "~/teaching/csXXXX/marks-top.msg") + (bottom-file . "~/teaching/csXXXX/marks-bottom.msg") + ))) + |