summaryrefslogtreecommitdiff
path: root/example.emacs.el
diff options
context:
space:
mode:
authorDavid Bremner <bremner@unb.ca>2009-12-29 21:51:34 -0400
committerDavid Bremner <bremner@unb.ca>2009-12-29 21:59:00 -0400
commit074d871e3bf871528595e8c64175727ff30e7114 (patch)
treed25973f4f1de723284703cac42742afb702f7c9c /example.emacs.el
parent299475296b1337e63b9634ba8e06834f73e0522d (diff)
add examples from my .emacs
Diffstat (limited to 'example.emacs.el')
-rw-r--r--example.emacs.el22
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")
+ )))
+