From 9b248f229931d537929bb70f75e5bf40999b16f0 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 4 Jan 2019 13:37:15 -0500 Subject: [PATCH] Fix v bind not switching to linewise visual After invoking expand-region. Also fixes expand-region reporting the old contraction key (V, when it should be C-v). --- modules/config/default/+evil-bindings.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/config/default/+evil-bindings.el b/modules/config/default/+evil-bindings.el index be17cf668..22c0e5f0b 100644 --- a/modules/config/default/+evil-bindings.el +++ b/modules/config/default/+evil-bindings.el @@ -4,7 +4,7 @@ ;; expand-region's prompt can't tell what key contract-region is bound to, so we ;; tell it explicitly. -(setq expand-region-contract-fast-key "V") +(setq expand-region-contract-fast-key "C-v") ;; Don't let evil-collection interfere with certain keys (setq evil-collection-key-blacklist @@ -38,7 +38,9 @@ :i "C-j" #'+default/newline ; default behavior ;; expand-region - :v "v" #'er/expand-region + :v "v" (general-predicate-dispatch 'er/expand-region + (eq (evil-visual-type) 'line) + 'evil-visual-char) :v "C-v" #'er/contract-region (:after vc-annotate