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).
This commit is contained in:
Henrik Lissner 2019-01-04 13:37:15 -05:00
parent 05e52b7e29
commit 9b248f2299
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

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