help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Initial frame geometry in w32 gnu emacs


From: B.T. Raven
Subject: Re: Initial frame geometry in w32 gnu emacs
Date: Thu, 26 May 2005 06:58:04 -0500

"Eli Zaretskii" <eliz@gnu.org> wrote in message
news:mailman.1852.1117078839.25862.help-gnu-emacs@gnu.org...
> > From: "B.T. Raven" <ejmn@cpinternet.com>
> > Date: Wed, 25 May 2005 18:37:14 -0500
> >
> > According to the docs, launching under X with the --geometry
argument
> > (along with suitable parameters) will size and position the initial
> > frame on the screen. Can the same thing be accomplished by adding
code
> > to the .emacs?
>
> Yes.  Here's an example:
>
>     (add-to-list 'default-frame-alist '(top . 0))
>     (add-to-list 'default-frame-alist '(left . 140))
>     (add-to-list 'default-frame-alist '(height . 42))
>
>

Thanks, Eli. I didn't know about add-to-list, so I ended up using:

 (setq initial-frame-alist '((top . 370) (left . 1) (width . 163)
(height . 17)))

which fills the bottom half of a 17" monitor. (I may have to modify it
for the laptop.) During emacs startup two other frame sizes flash on the
screen briefly but this is only an esthetic blemish. There must be lower
level settings of the frame geometry not accessible to the user.

Ed



reply via email to

[Prev in Thread] Current Thread [Next in Thread]