Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
alienbogart opened this issue Oct 8, 2018 · 2 comments
Open

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

alienbogart opened this issue Oct 8, 2018 · 2 comments

Comments

@alienbogart
Copy link

alienbogart commented Oct 8, 2018

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.

@alienbogart alienbogart changed the title How the current line number scale with "text-scale-adjust"? Make current line number scale with "text-scale-adjust"? Oct 8, 2018
@noctuid
Copy link
Owner

noctuid commented Oct 8, 2018

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
Copy link
Author

Yep: the same thing happens with emacs -Q.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants