From: Eli Zaretskii <eliz@elta.co.il>
Subject: Re: startup resize
Date: 14 Jan 2004 15:39:34 +0200 [thread overview]
Message-ID: <u3caivecp.fsf@elta.co.il> (raw)
In-Reply-To: <bu3bm1$mgr$1@sea.gmane.org> (message from Giannandrea Castaldi on Wed, 14 Jan 2004 13:11:28 +0100)
> 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.
next prev parent reply other threads:[~2004-01-14 13:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.540.1074012057.928.help-gnu-emacs@gnu.org>
2004-01-14 11:36 ` startup resize leo
2004-01-14 12:11 ` Giannandrea Castaldi
2004-01-14 13:39 ` Eli Zaretskii [this message]
[not found] <72A87F7160C0994D8C5A36E2FDC227F50896C92C@txnexc01.americas.cpqcorp.net>
2004-01-14 11:58 ` Giannandrea Castaldi
2004-01-13 15:17 Giannandrea Castaldi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=u3caivecp.fsf@elta.co.il \
--to=eliz@elta.co.il \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).