all repos — archive/dotfiles @ ae4a6f6b4e6eac58fc9283f692dd2e8d5b58ae99

Superseded by nixfiles

Emacs: Add contextual shortcuts for mu4e
Alan Pearce alan@alanpearce.eu
Fri, 29 Sep 2017 11:25:03 +0200
commit

ae4a6f6b4e6eac58fc9283f692dd2e8d5b58ae99

parent

13cde4dbbb5df743899f45a84d5fc0f59b615efc

1 files changed, 14 insertions(+), 0 deletions(-)

jump to
M emacs/.emacs.d/main.elemacs/.emacs.d/main.el
@@ -1254,6 +1254,12 @@ (mu4e-sent-folder . "/personal/alanpearce/Sent")                               (mu4e-drafts-folder . "/personal/alanpearce/Drafts")
                               (mu4e-refile-folder . "/personal/alanpearce/Archive")
                               (mu4e-trash-folder . "/personal/alanpearce/Trash")
+                              (mu4e-maildir-shortcuts . (("/personal/alanpearce/INBOX" . ?i)
+                                                         ("/personal/alanpearce/Archive" . ?s)
+                                                         ("/personal/alanpearce/Sent" . ?s)
+                                                         ("/personal/alanpearce/Spam" . ?p)
+                                                         ("/personal/alanpearce/Orders" . ?o)))
+                              ))
                      (make-mu4e-context
                       :name "Riseup"
                       :match-func (lambda (msg)
@@ -1266,6 +1272,10 @@ (mu4e-sent-folder . "/riseup/Sent")                               (mu4e-drafts-folder . "/riseup/Drafts")
                               (mu4e-refile-folder . "/riseup/Archive")
                               (mu4e-trash-folder . "/riseup/Trash")
+                              (mu4e-maildir-shortcuts . (("/personal/riseup/INBOX" . ?i)
+                                                         ("/personal/riseup/Archive" . ?r)
+                                                         ("/personal/riseup/Sent" . ?s)
+                                                         ("/personal/riseup/Spam" . ?p)))))
                      (make-mu4e-context
                       :name "Satoshipay"
                       :match-func (lambda (msg)
@@ -1278,6 +1288,10 @@ (mu4e-drafts-folder . "/satoshipay/[Gmail]/.Drafts")                               (mu4e-sent-folder .   "/satoshipay/[Gmail]/.Sent Mail")
                               (mu4e-refile-folder . "/satoshipay/[Gmail]/.All Mail")
                               (mu4e-trash-folder .  "/satoshipay/[Gmail]/.Bin")
+                              (mu4e-maildir-shortcuts . (("/satoshipay/INBOX" . ?i)
+                                                         ("/satoshipay/[Gmail]/.All Mail" . ?r)
+                                                         ("/satoshipay/[Gmail]/.Sent Mail" . ?s)
+                                                         ("/satoshipay/[Gmail]/.Spam" . ?p))))))
                     mu4e-user-mail-address-list (append
                                                  (delq nil
                                                        (mapcar (lambda (context)