Skip to content

[Basic elisp question] How can I define a function that calls meow-end-of-thing -> "l"? #643

Closed Answered by DogLooksGood
kartikynwa asked this question in Q&A
Discussion options

You must be logged in to vote

Hey, the argument THING accepts a char, not a symbol.

An inner function meow--parse-range-of-thing gives you the bounds by a thing symbol. Or you can do this:

(defun meow-end-of-line ()
  (interactive)
  (meow--select (meow--make-selection 'line (point) (line-end-position))))

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kartikynwa
Comment options

Answer selected by kartikynwa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants