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.

Buy it Now

Goto paypal.com, send $6 to Xah@XahLee.org , and put in message “xah-get-thing.el”. (be sure to include your correct email address. I need that to send it to you.)


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.