[notmuch] Make help closable with q

notmuch help uses emacs view mode which has never been evilified.
With this I am trying to make it closable with q again.

Known issue: q seems only to work the second time it is used, Q can be used
instead.
This commit is contained in:
Maximilian Wolff 2020-03-16 20:43:32 +01:00
parent 83fbc7a13e
commit 053f6da6c6
No known key found for this signature in database
GPG Key ID: 2DD07025BFDBD89A
1 changed files with 3 additions and 1 deletions

View File

@ -98,9 +98,11 @@
"v" #'notmuch-hello-versions
"z" #'notmuch-tree
"M-=" #'notmuch-refresh-all-buffers)
;; Make notmuch message mode exitable with q
;; Make notmuch message mode and help view exitable with q
(evil-define-key 'normal notmuch-message-mode-map
"q" #'message-kill-buffer)
(evil-define-key 'normal view-mode-map
"q" #'View-quit)
(evilified-state-evilify-map notmuch-show-mode-map
:mode notmuch-show-mode
:bindings