summary refs log tree commit diff stats
path: root/emacs
diff options
context:
space:
mode:
authorAlan Pearce2017-12-21 11:58:52 +0100
committerAlan Pearce2017-12-21 11:58:52 +0100
commita54540c63ecd95778aa5d6b0a55787ccf009128b (patch)
tree340c7cc37286bbd3e72c91e2342126d9287f5a8e /emacs
parente08c92c631b1dcbbcc8f78f5c8265032010e1124 (diff)
downloaddotfiles-a54540c63ecd95778aa5d6b0a55787ccf009128b.tar.lz
dotfiles-a54540c63ecd95778aa5d6b0a55787ccf009128b.tar.zst
dotfiles-a54540c63ecd95778aa5d6b0a55787ccf009128b.zip
Emacs: Hide trashed messages in mu4e
Diffstat (limited to 'emacs')
-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 1ef88f7..3c10104 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