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.

Comments

  1. Eh? The wrapping is exactly the same. The only difference is where the number column is placed.

    ReplyDelete
  2. I 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

Post a Comment

Popular posts from this blog

GNU Emacs as a Comic Book Reader

Tinylisp and Multi-threaded Emacs

Data Visualization with GNU Emacs