commit f98075591faa613232c463881267e6deb05bdad7
parent 488865c595256a2338cd3c1a2b66b6a78562bae9
Author: Anders <anders@desk.andersuno.nu>
Date: Sat, 1 Oct 2022 16:45:05 +0200
Customized mu4e bookmarks
Diffstat:
1 file changed, 19 insertions(+), 1 deletion(-)
diff --git a/.doom.d/config.el b/.doom.d/config.el
@@ -92,6 +92,7 @@
(after! mu4e
(setq mu4e-update-interval (* 60 60))
+
(set-email-account! "Gmail"
'((mu4e-sent-folder . "/[Gmail]/Sent Mail")
(mu4e-drafts-folder . "/[Gmail]/Drafts")
@@ -100,12 +101,29 @@
;;(smtpmail-smtp-user . "anders.hedman01@gmail.com")
(mu4e-compose-signature . "---\nAnders Hedman"))
t)
+
(setq mu4e-maildir-shortcuts
'((:maildir "/Inbox" :key ?i)
(:maildir "/[Gmail]/Sent Mail" :key ?s)
(:maildir "/[Gmail]/Drafts" :key ?d)
(:maildir "/[Gmail]/Trash" :key ?t)
- (:maildir "/[Gmail]/All Mail" :key ?a))))
+ (:maildir "/[Gmail]/All Mail" :key ?a)))
+
+ (setq mu4e-bookmarks
+ '((:name "Unread messages"
+ :query "flag:unread AND NOT flag:trashed AND maildir:/INBOX"
+ :key ?u)
+ (:name "Today's messages"
+ :query "date:today..now"
+ :key ?t)
+ (:name "Last 7 days"
+ :query "date:7d..now"
+ :hide-unread t
+ :key ?w)
+ (:name "Messages with images"
+ :query "mime:image/*"
+ :key ?p)))
+ )
(def-project-mode! +ansible-yaml-mode
:modes '(yaml-mode)