June, 2008

now browsing by month


Emacs Tip: Word counting with a regular expression

Here’s a function for Emacs that counts the number of words in a buffer by using a regular expression: [gistĀ 5942572] The regular expression matches againstĀ one or more word characters. It doesn’t move the current point of the buffer so you don’t have to keep re-positioning the cursor every time youRead More