Keep line numbers and syntax highlighting in GNU nano across sessions
Add set linenumbers and syntax includes to ~/.config/nano/nanorc so GNU nano shows line numbers and colors in every new session.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Add set linenumbers and syntax includes to ~/.config/nano/nanorc so GNU nano shows line numbers and colors in every new session.
When working with large files or older Emacs builds, selecting a line‑number strategy can dramatically affect performance. This guide compares the built‑in display‑line‑numbers, the legacy linum‑mode, and the lightweight nlinum‑mode, then shows a practical init configuration and validation steps.