From 074d871e3bf871528595e8c64175727ff30e7114 Mon Sep 17 00:00:00 2001 From: David Bremner Date: Tue, 29 Dec 2009 21:51:34 -0400 Subject: add examples from my .emacs --- example.emacs.el | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 example.emacs.el 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 ") + ("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") + ))) + -- cgit v1.2.3