From 7d04a5c41a1e1f2cf38cc82f0613a7a239def328 Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Thu, 5 May 2022 16:08:48 +0200 Subject: [PATCH] [Emacs] Add maildir keybinds to mu4e --- org/config/emacs.org | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/org/config/emacs.org b/org/config/emacs.org index d02f90d..d633db9 100644 --- a/org/config/emacs.org +++ b/org/config/emacs.org @@ -1643,6 +1643,7 @@ configuration for the ~mu4e~ package itself. <> <> <> + <> (when (fboundp 'imagemagick-register-types) (imagemagick-register-types)) @@ -1954,6 +1955,27 @@ We can finally define our bookmarks! The code reads as follows: (:name "This Year" :key ?y :query "date:1y..now AND NOT flag:trashed"))) #+end_src +***** Maildirs +:PROPERTIES: +:CUSTOM_ID: Packages-Configuration-Applications-Email-Mu4e-Maildirs-miy134713gj0 +:END: +Sometimes, bookmarks are a bit too restrictive when I want to search +for stuff. Simply jumping to a mail directory, or maildir, is more +than enough. In mu4e, with my current setup, I can jump to any maildir +with the shortcut ~Jo~ in normal-mode, and I just need to chose in a +list the maildir I want to jump to. But it can be faster. + +With this piece of code, I can simply jump to my inbox maildir with +~Ji~, to my sent messages with ~Js~, and so on. +#+name: mu4e-maildirs +#+begin_src emacs-lisp :tangle no +(setq mu4e-maildir-shortcuts + '((:maildir "/Inbox" :key ?i) + (:maildir "/Sent" :key ?s) + (:maildir "/Junk" :key ?j) + (:maildir "/Trash" :key ?t))) +#+end_src + ***** Dealing with spammers :PROPERTIES: :CUSTOM_ID: Packages-Configuration-Applications-Email-Mu4e-Dealing-with-spammers-tid4mw51l7j0