From fadc5f1b352d5b08f15f68aaf135967939421c3f Mon Sep 17 00:00:00 2001 From: TEC Date: Mon, 26 Apr 2021 12:11:28 +0800 Subject: [PATCH] Mu4e: Add header line to dired buff when attaching --- modules/email/mu4e/autoload/email.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/email/mu4e/autoload/email.el b/modules/email/mu4e/autoload/email.el index b6689e50c..7aab501b3 100644 --- a/modules/email/mu4e/autoload/email.el +++ b/modules/email/mu4e/autoload/email.el @@ -300,7 +300,11 @@ When otherwise called, open a dired buffer and enable `dired-mu4e-attach-ctrl-c- :lighter "attach" :keymap (let ((map (make-sparse-keymap))) (define-key map (kbd "C-c C-c") '+mu4e/attach-files) - map)) + map) + (setq header-line-format + (when dired-mu4e-attach-ctrl-c-ctrl-c + (substitute-command-keys + "Mu4e attach active. `\\[+mu4e/attach-files]' to attach the marked files.")))) ;;;###autoload (defun +mu4e-current-buffers ()