1

Given 2 absolute numbers (compatible with region-beginning, region-end).

How can these numbers be used to set the evil-mode line visual selection?

(note, I originally asked this question, but found its not compatible with evil-visual-line-mode)


This page looks like it's the same issue, but the solution doesn't apply here AFAICS.

1 Answer 1

3

Evil offers two functions for creating regions, evil-visual-select and evil-visual-make-selection. You'll want the former as it accepts two locations, whereas the latter accepts values for point and mark. The following creates a visual line selection from point to end of buffer:

(evil-visual-select (point) (point-max) 'line)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.