aboutsummaryrefslogtreecommitdiffstats
path: root/_spacemacs.d
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@outlook.com>2017-04-25 08:56:55 +0800
committerAaron LI <aaronly.me@outlook.com>2017-04-25 08:56:55 +0800
commitbac3832c02f1c576964f197a1e3339ab801a107f (patch)
tree56deecadae090942139fb8e694d94b143d499518 /_spacemacs.d
parent3bc70b86b6253cdd5736166b14224337cf17a0e2 (diff)
downloaddotfiles-bac3832c02f1c576964f197a1e3339ab801a107f.tar.bz2
Add email account "weitian@aaronly.me"
Diffstat (limited to '_spacemacs.d')
-rw-r--r--_spacemacs.d/config/my-mu4e.el19
1 files changed, 19 insertions, 0 deletions
diff --git a/_spacemacs.d/config/my-mu4e.el b/_spacemacs.d/config/my-mu4e.el
index 1fea46d..ff91a7d 100644
--- a/_spacemacs.d/config/my-mu4e.el
+++ b/_spacemacs.d/config/my-mu4e.el
@@ -46,6 +46,25 @@
;; copy message to sent folder
(mu4e-sent-messages-behavior . sent)))
,(make-mu4e-context
+ :name "weitian"
+ :enter-func (lambda ()
+ (mu4e-message "Switched to context: weitian"))
+ ;; `leave-func' not defined
+ ;; `match-func' is invoked just before `mu4e-compose-pre-hook'
+ :match-func (lambda (msg)
+ (when msg
+ (mu4e-message-contact-field-matches
+ msg :to "weitian@aaronly.me")))
+ :vars '((user-mail-address . "weitian@aaronly.me")
+ (user-full-name . "Weitian LI")
+ (mu4e-sent-folder . "/weitian/sent")
+ (mu4e-drafts-folder . "/weitian/drafts")
+ (mu4e-trash-folder . "/weitian/trash")
+ (mu4e-refile-folder . "/weitian/archive")
+ (mu4e-compose-signature . "Weitian")
+ ;; copy message to sent folder
+ (mu4e-sent-messages-behavior . sent)))
+ ,(make-mu4e-context
:name "Outlook-aly"
:enter-func (lambda ()
(mu4e-message "Switched to context: outlook-aly"))