Browse Source

Emacs: Make evil shift in visual mode prefix compatible

master
Riyyi 2 years ago
parent
commit
437dd48e51
  1. 8
      .config/emacs/config/evil.org

8
.config/emacs/config/evil.org

@ -63,16 +63,16 @@ Vim equivalence: <Tab>"
Vim equivalence: <gv" Vim equivalence: <gv"
(interactive) (interactive)
(evil-shift-left (region-beginning) (region-end)) (call-interactively #'evil-shift-left)
(funcall (evil-visual-restore))) (setq deactivate-mark nil))
(defun dot/evil-visual-shift-right () (defun dot/evil-visual-shift-right ()
"Shift visual selection left, retains the selection. "Shift visual selection left, retains the selection.
Vim equivalence: >gv" Vim equivalence: >gv"
(interactive) (interactive)
(evil-shift-right (region-beginning) (region-end)) (call-interactively #'evil-shift-right)
(funcall (evil-visual-restore))) (setq deactivate-mark nil))
(evil-mode)) (evil-mode))
#+END_SRC #+END_SRC

Loading…
Cancel
Save