Skip to content

How to highlight a region? How to use overlays? How to select a paragraph visually? #1854

Answered by cianoc
vindarel asked this question in Q&A
Discussion options

You must be logged in to vote

For visual selection does this example give you what you need:

(define-command mark-and-forward-char (n) (:universal)
  (unless (buffer-mark-p (current-buffer))
    (set-cursor-mark (current-point) (current-point)))
  (lem:character-offset (current-point) n))

This is a command from my init that enables shift-right.

Incidentally @cxxxr - would this be useful as a PR? I feel that shift arrow keys generally select stuff in most editors, so this would make LEM feel a little less weird.

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@vindarel
Comment options

vindarel Aug 6, 2025
Maintainer Author

@vindarel
Comment options

vindarel Aug 6, 2025
Maintainer Author

Answer selected by vindarel
Comment options

vindarel
Aug 6, 2025
Maintainer Author

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants