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

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

Re: startup resize


From: Eli Zaretskii
Subject: Re: startup resize
Date: 14 Jan 2004 15:39:34 +0200

> From: Giannandrea Castaldi <g.castal@tiscali.it>
> Date: Wed, 14 Jan 2004 13:11:28 +0100
> 
> leo wrote:
> > Giannandrea Castaldi <g.castal@tiscali.it> writes:
> > 
> > 
> >>I've changed my font in .emacs and now when emacs starts it:
> >>1. start with default font
> >>2. maximize the frame
> >>3. change the font (for my settings in .emacs)
> >>How can I remove the step 2 (maximize the frame) or postpone it after
> >>my font setting?
> > 
> > 
> > what do you want to achive? that emacs has the correct font straight
> > away?
> Yes, I would like to eliminate the initial refresh and to have the frame 
>   maximized.

The Emacs startup code defines a few hook variables designed for such
situations: if these variables are non-nil, Emacs calls the functions
they list at certain strategic points of its startup procedure.
Search startup.el for "-hook" to see the whole story.

In this case, `after-init-hook' seems to be what you want: write a
short function that maximizes the frame, and set `after-init-hook' to
that function.  See the doc string of `after-init-hook' for more
details.





reply via email to

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