summary refs log tree commit diff stats
path: root/user/emacs
diff options
context:
space:
mode:
authorAlan Pearce2020-05-19 12:29:05 +0200
committerAlan Pearce2020-05-19 12:29:05 +0200
commit69f5a373af817c0f1d1c138204b74cb10de5b917 (patch)
treec11b99344cdd6394a7087644b6555193662427f8 /user/emacs
parent4d9c31db6220bc0ba82f62023ed8ead26338027b (diff)
downloadnixfiles-69f5a373af817c0f1d1c138204b74cb10de5b917.tar.lz
nixfiles-69f5a373af817c0f1d1c138204b74cb10de5b917.tar.zst
nixfiles-69f5a373af817c0f1d1c138204b74cb10de5b917.zip
Emacs: fix trash/thread keybinds in mu4e
Diffstat (limited to 'user/emacs')
-rw-r--r--user/emacs/init.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el
index e69e0126..21290af5 100644
--- a/user/emacs/init.el
+++ b/user/emacs/init.el
@@ -920,6 +920,13 @@ _p_rev       _u_pper              _=_: upper/lower       _r_esolve
   :if (executable-find "mu")
   :commands (mu4e)
   :defines (mu4e-contexts)
+  :general (:keymaps 'mu4e-headers-mode-map
+                     :states 'normal
+                     "d" #'mu4e-headers-mark-for-trash
+                     "T" #'mu4e-headers-mark-thread)
+  (:keymaps 'mu4e-view-mode-map
+            :states 'normal
+            "d" #'mu4e-view-mark-for-trash)
   :init (progn
           (with-eval-after-load 'evil-ex
             (evil-ex-define-cmd "mu[4e]" #'mu4e)))