💻 Software
How do I display line numbers in Emacs (not in the mode line)?
Fresh7 days ago
Mar 15, 2026101342 viewsConfidence Score1%
1%
Problem
I know how to display line numbers (and columns) in the mode-line, but I'd like emacs to display the line numbers for all the lines on the left-hand side. I've seen this done in vim and other text editors. How do I do this for emacs?
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How do I display line numbers in Emacs (not in the mode line)?
Low Risk
M-x linum-mode (or ), and put in your (or ) to enable it at startup.
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix