Magit: Bind q for read-only-mode (#108)
This commit is contained in:
parent
081deaf903
commit
206dd25587
|
@ -36,12 +36,15 @@
|
||||||
|
|
||||||
(defvar magit-blame-mode-map)
|
(defvar magit-blame-mode-map)
|
||||||
|
|
||||||
(defconst evil-collection-magit-maps '(magit-blame-mode-map))
|
(defconst evil-collection-magit-maps '(magit-blame-mode-map
|
||||||
|
magit-blame-read-only-mode-map))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun evil-collection-magit-setup ()
|
(defun evil-collection-magit-setup ()
|
||||||
"Set up `evil' bindings for `magit'."
|
"Set up `evil' bindings for `magit'."
|
||||||
(evil-collection-define-key 'normal 'magit-blame-mode-map
|
(evil-collection-define-key 'normal 'magit-blame-mode-map
|
||||||
|
"q" 'magit-blame-quit)
|
||||||
|
(evil-collection-define-key 'normal 'magit-blame-read-only-mode-map
|
||||||
"q" 'magit-blame-quit))
|
"q" 'magit-blame-quit))
|
||||||
|
|
||||||
(provide 'evil-collection-magit)
|
(provide 'evil-collection-magit)
|
||||||
|
|
Loading…
Reference in New Issue