aboutsummaryrefslogtreecommitdiff
path: root/evil-states.el
diff options
context:
space:
mode:
authorJustin Burkett <justin@burkett.cc>2019-08-08 21:50:50 -0400
committerEivind Fonn <evfonn@gmail.com>2019-11-19 11:34:20 +0100
commit5365e4d79f7f9c9e04d8d4f9b02b087791c18db2 (patch)
treeea047fe8d9012bf3e60a00d431b9d9a1ee0bb6ae /evil-states.el
parent92102f3b30d03d1d87b34ae2c01e4bc2013d5129 (diff)
Make more commands support visual-line-mode
when evil-respect-visual-line-mode is non-nil, including evil-change-line, evil-delete-line, and evil-yank-line. Most of the work is done through the motions evil-line-or-visual-line and evil-end-of-line-or-visual-line. These motions use visual lines when visual-line-mode and evil-respect-visual-line-mode are non-nil, and revert back to standard lines otherwise. Visual selection via visual lines in the sense of visual-line-mode is supported by adding a new screen-line type (named to avoid confusion with visual state).
Diffstat (limited to 'evil-states.el')
-rw-r--r--evil-states.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/evil-states.el b/evil-states.el
index 8ffc1d6..7d029b3 100644
--- a/evil-states.el
+++ b/evil-states.el
@@ -258,6 +258,10 @@ the selection is enabled.
"Linewise selection."
:message "-- VISUAL LINE --")
+(evil-define-visual-selection screen-line
+ "Linewise selection in `visual-line-mode'."
+ :message "-- SCREEN LINE --")
+
(evil-define-visual-selection block
"Blockwise selection."
:message "-- VISUAL BLOCK --"