[Top][All Lists]

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

[h-e-w] Fwd: Re: Control frame size on startup from .emacs

From: David Vanderschel
Subject: [h-e-w] Fwd: Re: Control frame size on startup from .emacs
Date: 05 May 2005 00:23:41 -0500

Michael Mason attempted to post the appended message,
which required moderation because he has not joined
the list.  I was unable to approve the posting because
the Web interface for administrators is currently
down.  Thus I am forwarding it here.

The other responses on this subject did not get into
any issues which are specific to the Windows port of
emacs.  In my opinion, anyone who makes that sort of
response should also politely remind the original
poster that, for future reference, such questions are
more appropriately posed in the Usenet
forum, where there are more folks to help and more who
can benefit from seeing the response.  If you cannot
see a Windows connection, perhaps you should restrain
yourself from responding to such a question at all.

Had Michael's response been of the same sort as the
others, I would not be forwarding it.  However,
Michael did see a Windows connection.  He goes into
detail related to the impact of font selection on
frame size, some of which information is specific to
Windows.  Thus his response is much more nearly on
topic than the others, and I think it should be seen
on the list.

  David V.

----- Original Message ----- 
From: "Mason, Michael M" <address@hidden>
To: <address@hidden>
Sent: Wednesday, May 04, 2005 3:44 PM
Subject: RE: [h-e-w] Control frame size on startup from .emacs

> What do I need to control the frame geometry of emacs
> on startup?

I'm assuming that what you want to do is avoid the frame appearing at the
default size and then re-sizing when your .emacs is processed.

First, you need to know which font you're going to use at startup.  You need
this because the frame geometry is specified as a number of columns and a
number of rows, so the size of the frame is dependent on the font being

Create two keys in the registry.  These are the ones that I use; you'll need
to change the values to something that works on your system:-

Key  : HKLM\SOFTWARE\GNU\Emacs\Emacs.Font
Type : REG_SZ
Value: -*-Andale Mono-normal-r-*-*-11-*-*-*-c-*-iso8859-1

Key  : HKLM\SOFTWARE\GNU\Emacs\Emacs.Geometry
Type : REG_SZ
Value: 80x65+100+5

The geometry is specified as AxB+C+D where:-

  A = number of columns
  B = number of rows
  C = distance from left of screen in pixels
  D = distance from top of screen in pixels

So A and B specify the size of the initial frame, and C and D specify its
position (the top left corner).

Note that I've put the keys in HKLM, which means that they affect all users
of the computer.  If you prefer, you can put the values in HKCU and then
they'll only affect you.


reply via email to

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