atamariya · 2022-03-16 05:03
​
https://preview.redd.it/t85jbikwgon81.png?width=1524&format=png&auto=webp&s=937e81d616cd06dacdd47bd0c150506f41874168
Thought it would be good idea to have a visual comparison of two popular line number modes in Emacs. Left is linum-mode and right is display-line-numbers-mode. https://lifeofpenguin.blogspot.com/2022/03/line-number-display-in-gnu-emacs.html
Danrobi1 · 2022-03-16 05:09
> Thought it would be good idea to have a visual comparison of two popular line number modes in Emacs.
Good idea. I like `display-line-numbers-mode` better.
holy-rusted-metal · 2022-03-16 06:15
I used to prefer linum mode because that little margin separates the numbers from my code, because if I had any literals on that left edge (usually from wrapping around due to my small screen), it was easy to confuse them... However, display-line-numbers is supposed to be much more performant when editing very large files. So then I ended up installing the spacemacs-dark theme that uses a darker color for the line numbers background than the rest of the code, which solved the readability problem for me, so now I use display-line-numbers all the way!