May 11, 2006
Emacs tips #2 : linenumbers
A question that pops up pretty often is how you can add line numbers in the margin of your files the way most other editors do.
There are actually two ways of doing this:
- adding the numbers in the margin
- adding the numbers to your files, so that they get saved with your file, might be useful in certain cases (COBOL source?)
Personally I (occasionaly) use setnu.el which works extremely well for my purposes.