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, etc} under cursor.

This package is similar to emacs builtin thing-at-point package thingatpt.el. [see Emacs Lisp: 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.