roman / golden-ratio.el

Automatic resizing of Emacs windows to the golden ratio
MIT License
592 stars 39 forks source link

scaling of width for wide frames. #43

Closed EricGebhart closed 9 years ago

EricGebhart commented 9 years ago

This happened in two stages. I'm not terribly attached to the first stage seeing that the second thing works so well. But I left it because it's nice to have more control. Basically I added two factor variables, one for when calculations are done, which can be 1 or some other value. Another variable that can be set to something less than zero to scale the width of the windows down on wide screens. There are two new functions, one to set the factor value used in calculations, and another to toggle between the widescreen factor value and 1. This works pretty well but requires some user interaction. I have to toggle the widescreen mode when I go with my laptop somewhere, and back again when I connect to my wide monitor.

Then I added a new calculation that scales according to frame-size. This works really well for any size frame, but can cause active windows to actually shrink if there is more frame than windows. There is an additional variable that allows this behavior to be turned on or off. When off, it works as above.

The overall default behavior has not changed. Setting auto scaling, or the factor values or both allows for as fine control as someone might want over the scaling of window widths.

roman commented 9 years ago

Like it... merging it in

EricGebhart commented 9 years ago

Cool!. Thanks! I'm liking it a lot.

----- Roman Gonzalez's Original Message -----

Like it... merging it in


Reply to this email directly or view it on GitHub: https://github.com/roman/golden-ratio.el/pull/43#issuecomment-77604139

Eric Gebhart e.a.gebhart@gmail.com