fix(evil): q/Q keybinds in view-mode
Caused by evil-collection-view binding q to quit-window, which breaks view-exit-action. This should be reported upstream.
This commit is contained in:
parent
fe0548e820
commit
9d7885abbf
1 changed files with 10 additions and 1 deletions
|
@ -359,4 +359,13 @@ and complains if a module is loaded too early (during startup)."
|
||||||
(dolist (mode evil-collection-mode-list)
|
(dolist (mode evil-collection-mode-list)
|
||||||
(dolist (req (or (cdr-safe mode) (list mode)))
|
(dolist (req (or (cdr-safe mode) (list mode)))
|
||||||
(with-eval-after-load req
|
(with-eval-after-load req
|
||||||
(+evil-collection-init mode +evil-collection-disabled-list))))))
|
(+evil-collection-init mode +evil-collection-disabled-list)))))
|
||||||
|
|
||||||
|
;; HACK: The Diff options in `save-some-buffers's prompt should persist after
|
||||||
|
;; you quit view-mode, but evil-collection-view's bindings on q/Q break
|
||||||
|
;; this, so these are here to restore them.
|
||||||
|
;; REVIEW: PR this upstream!
|
||||||
|
(map! :after (view evil-collection-view)
|
||||||
|
:map view-mode-map
|
||||||
|
:n "q" #'View-quit
|
||||||
|
:n "Q" #'View-quit-all))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue