From 47be8e292eba96fa8ebc05157b8922f962df29b9 Mon Sep 17 00:00:00 2001 From: TEC Date: Sat, 11 Sep 2021 21:05:43 +0800 Subject: [PATCH] feat(mu4e): reintroduce A and p view keybindings When viewing a message, in mu4e < 1.6 'A' gives actions that can be performed on the attachments, and 'p' / 'P' save attachments. The functions are removed in 1.6, and their nearest replacements are not bound. I think it makes sense to actually bind them. --- modules/email/mu4e/config.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/email/mu4e/config.el b/modules/email/mu4e/config.el index 2bddb3935..c38d45e11 100644 --- a/modules/email/mu4e/config.el +++ b/modules/email/mu4e/config.el @@ -181,6 +181,12 @@ (map! :map mu4e-headers-mode-map :vne "l" #'+mu4e/capture-msg-to-agenda) + ;; Functionality otherwise obscured in mu4e 1.6 + (when (version<= "1.6" mu4e-mu-version) + (map! :map mu4e-view-mode-map + :ne "A" #'mu4e-view-mime-part-action + :ne "p" #'mu4e-view-save-attachments)) + (map! :localleader :map mu4e-compose-mode-map :desc "send and exit" "s" #'message-send-and-exit