Emacs: xah-get-thing.el

By Xah Lee. Date: . Last updated: .

xah-get-thing.el is a emacs lisp utility for grabbing text under cursor.



The package gives you the following functions:

They are useful for writing commands that act on text selection if there's one, or current {symbol, block, …} under cursor.

This package is similar to emacs builtin thing-at-point package thingatpt.el. [see Elisp: Using thing-at-point]

The main differences are:

The return values of these functions is the same format as emacs's thingatpt.el, so you can just drop-in replace by changing the function names in your code.

If you have a question, put $5 at patreon and message me on xah discord.
Or support me by Buy Xah Emacs Tutorial