I like that Emacs 26's line numbers are fast, but they seem to have a problem. If you open an empty buffer, there is an empty area which is reserved for line numbers:
Once you add some text onto that line, the empty area actually fills up with a line number:
Unfortunately, when that area is empty it's pretty ugly. It's a bit confusing to open an empty buffer and see the cursor moved off to the right. It can make one think that they accidentally tabbed over there somehow.
I've tried fiddling around with display-line-numbers-width
and display-line-numbers-width-start
, but they seem to do no good to relieve this issue. What can I do so that this empty area is shrunken when the line is empty? Or at least, can I make a line number show up on that line even when it is empty? Some visual distinction would be nice at the very least, so that I know that I haven't mistakenly tabbed over.
line-number-display-width
have a value of0
when the buffer is empty.