Thomas Adam <[email protected]> writes:

> On Tue, May 25, 2010 at 09:55:05PM +0200, Jean Felder wrote:
>> In fact, I'm launching emacs daemon at startup with the command "emacs 
>> --daemon"
>> Then, I'm using "emacsclient -c"
>> The first time, I'm using emacsclient, the window is launched but not 
>> maximised.
>> The second time, everything works fine : the second window is maximised.
>> 
>> I've tried to use FvwmIdent and I've got "emacs" as name for both windows.
>> So, I don't understand where the problem is.
>> 
>> Perhaps, this is emacs related.
>
> Almost certainly.  I refuse outright to install emacs on my machine, but I

Heresy!

> suspect what's happening here is that the emacs client window is maximized
> by FVWM, but something is then undoing it.
>
> Out of interest, does this help any?
>
> Style Emacs InitialMapCommand Schedule 5000 Maximize

I much prefer to control the size of Emacs windows with X-Resources.

This is what I use in my X-Resources:

! Geometry changes based on screen size:
#if ( HEIGHT == 900 )
emacs.geometry: 81x55+0+0
#elif ( HEIGHT == 1024 )
emacs.geometry: 81x63+0+0
#elif ( HEIGHT == 768 )
emacs.geometry: 81x46+0+0
#elif ( HEIGHT == 1200 )
emacs.geometry: 81x56
#else
emacs.geometry: 81x40+0+0
#endif


As you can see, I use the same X-Resources for a number of different
physical screen sizes.  You may not need that.

To start full-screen just pick the right numbers.

The advantage to X-Resources is that the initial frame is created the
way you want it.

Reply via email to