I frequent the gnu.emacs.sources news group as one route to finding out about new packages. linenum.el came across the list recently. The package displays line numbers on the left side of your buffer. The author indicates that it is an alternative to setnu.el with the benefit that it works incrementally and can handle large files. It seems like one of those packages that is nice to have in your bag of tricks. Of course, you may just want the current line number in your modeline by using the M-x line-number-mode command. You can set it by default with the following line in your .emacs file.
(line-number-mode 1)
And in case you forgot (or didn’t know), M-g M-g (or M-g g) is the key binding for M-x goto-line in Emacs 22.
3 responses so far ↓
One of my officemates just pointed out to me that the goto-line key binding is only in Emacs 22. I will update the post. Thanks Andy.
Good tip! I didn’t know about the Emacs 22 keybinding. That’s pretty handy.
If you just want to know what line you are on occasionally you can ask, M-x what-line.
[...] setnu.el(??? setnu+.el) ?? wb-line-number.el ???????????? linum.el [...]
Leave a Comment