all repos — archive/dotfiles @ a54540c63ecd95778aa5d6b0a55787ccf009128b

Superseded by nixfiles

Emacs: Hide trashed messages in mu4e
Alan Pearce alan@alanpearce.eu
Thu, 21 Dec 2017 11:58:52 +0100
commit

a54540c63ecd95778aa5d6b0a55787ccf009128b

parent

e08c92c631b1dcbbcc8f78f5c8265032010e1124

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

jump to
M emacs/.emacs.d/main.elemacs/.emacs.d/main.el
@@ -1281,6 +1281,10 @@ mu4e-index-lazy-check t 
                     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