Line number display in GNU Emacs
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.
The major difference is how the wrapped lines are treated (see line 15). Linum-mode uses the area on the left of fringe indicator. So you have a bold separation between the line number and the text. In contrast, display-line-numbers-mode uses the margin area to the right of fringe indicator. Hence there is no separation and text flows smoothly.
Eh? The wrapping is exactly the same. The only difference is where the number column is placed.
ReplyDeleteI wish they would reserve the space for at least three characters. As in assume the line is already 999 or 3 digit and reserve space for it ahead of time in front of it.
ReplyDelete