From 74411c87b8367f9fc784a933eb24de2dd879c72f Mon Sep 17 00:00:00 2001 From: TEC Date: Wed, 23 Sep 2020 01:35:59 +0800 Subject: [PATCH] Mu4e: Reduce unnecessary mu action masking by evil --- modules/email/mu4e/config.el | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/modules/email/mu4e/config.el b/modules/email/mu4e/config.el index 76c44b18e..f57f544ad 100644 --- a/modules/email/mu4e/config.el +++ b/modules/email/mu4e/config.el @@ -208,7 +208,16 @@ will also be the width of all other printable characters." :desc "send and exit" "s" #'message-send-and-exit :desc "kill buffer" "d" #'message-kill-buffer :desc "save draft" "S" #'message-dont-send - :desc "attach" "a" #'mail-add-attachment)) + :desc "attach" "a" #'mail-add-attachment) + ;; Due to evil, none of the marking commands work when making a visual selection in + ;; the headers view of mu4e. Without overriding any evil commands we may actually + ;; want to use in and evil selection, this can be easily fixed. + (when (featurep! :editor evil) + (map! :map mu4e-headers-mode-map + :v "*" #'mu4e-headers-mark-for-something + :v "!" #'mu4e-headers-mark-for-read + :v "?" #'mu4e-headers-mark-for-unread + :v "u" #'mu4e-headers-mark-for-unmark))) (when (featurep! :lang org) (use-package! org-msg