[evilified] Visual state text objects, exchange point/mark

In evilified visual state.
- Add the inner: `i` and outer `a` text objects.
- Add `o` to exchange the point and mark
  (jump between the start and end of the region)
This commit is contained in:
duianto 2021-03-14 13:40:33 +01:00 committed by Maximilian Wolff
parent de1425628c
commit 07f31743e7
1 changed files with 4 additions and 1 deletions

View File

@ -120,7 +120,10 @@ Needed to bypass keymaps set as text properties."
(setq-local evilified-state--visual-state-map
(copy-keymap evil-visual-state-map)))
(setq-local evil-visual-state-map
(cons 'keymap (list (cons ?y 'evil-yank)
(cons 'keymap (list (cons ?a evil-outer-text-objects-map)
(cons ?i evil-inner-text-objects-map)
(cons ?o 'exchange-point-and-mark)
(cons ?y 'evil-yank)
(cons 'escape 'evil-exit-visual-state)))))
(defun evilified-state--restore-visual-state-keymap ()