Saturday, December 8, 2007

emacs: how-many

Discovered another emacs command yesterday:

how-many

Returns the count of a regex following the point (cursor position).

For example

M-x how-many
\b\w

returns a word count from point to the end of the buffer.

Nice.