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:
parent
05e52b7e29
commit
9b248f2299
1 changed files with 4 additions and 2 deletions
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
;; expand-region's prompt can't tell what key contract-region is bound to, so we
|
;; expand-region's prompt can't tell what key contract-region is bound to, so we
|
||||||
;; tell it explicitly.
|
;; 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
|
;; Don't let evil-collection interfere with certain keys
|
||||||
(setq evil-collection-key-blacklist
|
(setq evil-collection-key-blacklist
|
||||||
|
@ -38,7 +38,9 @@
|
||||||
:i "C-j" #'+default/newline ; default behavior
|
:i "C-j" #'+default/newline ; default behavior
|
||||||
|
|
||||||
;; expand-region
|
;; 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
|
:v "C-v" #'er/contract-region
|
||||||
|
|
||||||
(:after vc-annotate
|
(:after vc-annotate
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue