summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2017-12-21 11:58:52 +0100
committerAlan Pearce2017-12-21 11:58:52 +0100
commita54540c63ecd95778aa5d6b0a55787ccf009128b (patch)
tree340c7cc37286bbd3e72c91e2342126d9287f5a8e
parente08c92c631b1dcbbcc8f78f5c8265032010e1124 (diff)
downloadnixfiles-a54540c63ecd95778aa5d6b0a55787ccf009128b.tar.lz
nixfiles-a54540c63ecd95778aa5d6b0a55787ccf009128b.tar.zst
nixfiles-a54540c63ecd95778aa5d6b0a55787ccf009128b.zip
Emacs: Hide trashed messages in mu4e
-rw-r--r--emacs/.emacs.d/main.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el
index 1ef88f7a..3c101047 100644
--- a/emacs/.emacs.d/main.el
+++ b/emacs/.emacs.d/main.el
@@ -1281,6 +1281,10 @@ With two prefix arguments, write out the day and month name."
 
                     mu4e-maildir (expand-file-name "~/mail")
 
+                    mu4e-headers-hide-predicate
+                    (lambda (msg)
+                      (member 'trashed (mu4e-message-field msg :flags)))
+
                     mu4e-change-filenames-when-moving t
 
                     message-kill-buffer-on-exit t