joaotavora / darkroom

Simple distraction-free editing
147 stars 12 forks source link

deactivate text-scale-mode to reset all text scaling #11

Closed livtanong closed 5 years ago

livtanong commented 5 years ago

Fixes #10

From the documentation of increase-text-scale

Increase the height of the default face in the current buffer by INC steps. If the new height is other than the default, ‘text-scale-mode’ is enabled.

Contrary to what it sounds like, disabling text-scale-mode does not prevent further scaling.

joaotavora commented 5 years ago

This probably breaks if you were already scaling text before darkroom-mode kicked in. But I don't care, I think. I'll merge this on monday at the latest. Thanks!

livtanong commented 5 years ago

Happy to help!

joaotavora commented 5 years ago

Pushed with a tweak to the commit message