roman / golden-ratio.el

Automatic resizing of Emacs windows to the golden ratio
MIT License
590 stars 38 forks source link

Support exclusions based on buffer name or major mode #15

Closed hickinbottoms closed 11 years ago

hickinbottoms commented 11 years ago

Hello, firstly thanks very much for Golden-Ratio for Emacs -- it works very nicely indeed.

I'm a keen Org-mode user and it makes use of small pop-up windows in a number of places. These small windows are sized to neatly wrap their contents and so they don't look their best if they're expanded in line with golden-ratio's rules.

I've added a couple of customisation lists that allow you to identify exclusions by buffer name or major mode. As an example, I have the following my my .emacs:

(setq golden-ratio-exclude-modes '("calendar-mode"))
(setq golden-ratio-exclude-buffer-names '(" *Org tags*" " *Org todo*"))
roman commented 11 years ago

I'll be patching this tomorrow, sorry for the delay :-s