noctuid / evil-guide

Draft of a guide for using emacs with evil
GNU General Public License v3.0
1.26k stars 61 forks source link

Make current line number scale with "text-scale-adjust"? #12

Open alienbogart opened 6 years ago

alienbogart commented 6 years ago

I'm using your tip for relative line numbers from here, but it bothers me that the number for the current line does not scale with the other numbers when I use "text-scale-adjust." This creates an annoying mismatch on the current line. Here's how it looks in action: https://gfycat.com/WeepyMarriedInganue I think the line numbers are to blame because this doesn't happen without them.

Look how small the current line number becomes (it's "nil" in my case, so it's always zero)

small-current-line

It's also small if I use your function unaltered, with actual current line numbers.

I think making the current line number scale up could solve the issue, but I don't know how to do it.

noctuid commented 6 years ago

I'm not sure. I'd check the the line-number and line-number-current-line faces and remove any customization of them from your config. I'd also try with emacs -Q to see if you still have the same issue. It's possible a theme or package is customizing these faces or interfering in some other way.

I don't use text-scale-adjust, so this may be an actual Emacs bug.

alienbogart commented 6 years ago

Yep: the same thing happens with emacs -Q.