How to show row numbers in Emacs - Wed, Apr 17, 2024
Welcome to my Emacs for noobs series. Let's make Emacs show row numbers
In order to show row numbers in Emacs fire up M-x and call display-line-numbers-mode and hit enter. This will already pull-up row number in the current file for you. If you want to pull-up row numbers across the board then use global-display-line-numbers-mode command.
If you want Emacs to remember your configuration, one way to do that is to edit your Emacs configuration file (see https://linuxrenaissance.com/post/emacs-theme-change/ on how to do that) and put (global-display-line-numbers-mode) somewhere at the end of your file and save with Ctrl-X-S.
Fire up Emacs after that to verify that your modification is operational.
Watch this article on YouTube: https://youtu.be/LbhI60-kjgA