Mu4e: Add header line to dired buff when attaching

This commit is contained in:
TEC 2021-04-26 12:11:28 +08:00
parent e881ced143
commit fadc5f1b35
No known key found for this signature in database
GPG key ID: 779591AFDB81F06C

View file

@ -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 ()