"Eli Zaretskii" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> > From: "B.T. Raven" <[EMAIL PROTECTED]>
> > 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

_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

Reply via email to