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

treemacs-text-scale should use the absolute value instead of incrementally increasing or decreasing the current value #1100

Open
ydzhou opened this issue Apr 2, 2024 · 4 comments

Comments

@ydzhou
Copy link

ydzhou commented Apr 2, 2024

Right now set treemacs-text-scale to be -1 seems just decrease the current font size by 1. If I repeatedly call this method, it will decrease the font-size multiple time.

Can we provide a new option or change this option to have the value to be fixed. -1 simply means set the font size to be the size of our current font minus one? So if I have a 16pt size font for emacs, treemacs will use 15pt for treemacs. And it will not decrease further if I call this multiple time.

@Alexander-Miller
Copy link
Owner

It is a relative value because, as the docs say, it is simply passed on to text-scale-increase.

And it will not decrease further if I call this multiple time.

The text scale is set during major-mode initialization. How are you managing to set it multiple times?

@ydzhou
Copy link
Author

ydzhou commented May 17, 2024

I use emacs-daemon. If I create multiple clients, this value will be set multiple times and get the error that it cannot be decreased anymore.

@Alexander-Miller
Copy link
Owner

Can you give me a reproduction recipe? I tried starting a few clients of my own but didn't see anything wrong.

Copy link

stale bot commented Jul 18, 2024

This issue has been automatically marked as stale because it has not had recent activity (this bot only works as a reminder, it will not close issues).

@stale stale bot added the stale label Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants