Line Numbering

DJCB, over at Emacs-Fu, takes note of the new line number command in Emacs 24 that Sivaram wrote about in Got Emacs? and offers up a few suggestions of his own. He shows a very nice trick for accomplishing the same thing and more using replace-regexp. It’s a little more complicated than rectange-number-lines so you probably won’t want to use it except for those cases where rectangle-number-lines (along with its optional FORMAT argument) can’t give you the desired result. Of course, if you’re still using an older version of Emacs it’s a nice way of getting the same functionality that rectangle-number-lines provides.

This entry was posted in General and tagged . Bookmark the permalink.