15 Feb 2011 12:07
Re: Setting window sizes
Konrad Hinsen <konrad.hinsen <at> fastmail.net>
2011-02-15 11:07:34 GMT
2011-02-15 11:07:34 GMT
On 25 Jan, 2011, at 12:00 , Konrad Hinsen wrote: > I am a rather recent user of ECB, which does a lot of things I like. For the moment my main source of trouble is that I can't get ECB to start up with the window sizes I set, no matter how I try. I tried both setting ecb-window-width and using ecb-store-window-sizes to store manually adjusted sizes. Neither one seems to have any effect. Any ideas? > > In case it matters, I use ECB 2.40 with Emacs 23.2.1 under MacOS X 10.6. Problem solved! Here is what happened. Emacs starts up with a default frame size. In my init.el, I set initial-frame-alist to get the size I want, but this is set only after the init.el has been handled completely. Since I configured ECB for auto-activation, it starts up in the original smaller frame for which it applies its layout. Then the frame size increases and all windows are scaled up, but rounding phenomena make the window sizes a bit different from what they were when I configured the layout for the bigger frame size. The solution is to change the frame size in the beginning of init.el by calling set-frame-size, instead of just setting initial-frame-alist. Then ECB gets activated with the correct frame size already set. I hope this will be useful to others! Konrad. ------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb(Continue reading)
RSS Feed