From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: startup resize Date: 14 Jan 2004 15:39:34 +0200 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: Reply-To: Eli Zaretskii NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1074092672 13800 80.91.224.253 (14 Jan 2004 15:04:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 14 Jan 2004 15:04:32 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jan 14 16:04:23 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AgmZC-0002Bv-00 for ; Wed, 14 Jan 2004 16:04:23 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AgmQV-0005Zt-OJ for geh-help-gnu-emacs@m.gmane.org; Wed, 14 Jan 2004 09:55:23 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AglVQ-0005gD-6z for help-gnu-emacs@gnu.org; Wed, 14 Jan 2004 08:56:24 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AglIg-0003Tk-DY for help-gnu-emacs@gnu.org; Wed, 14 Jan 2004 08:43:46 -0500 Original-Received: from [207.232.27.5] (helo=WST0035) by monty-python.gnu.org with asmtp (Exim 4.24) id 1AglDT-0002Ya-3i for help-gnu-emacs@gnu.org; Wed, 14 Jan 2004 08:37:51 -0500 Original-To: help-gnu-emacs@gnu.org In-reply-to: (message from Giannandrea Castaldi on Wed, 14 Jan 2004 13:11:28 +0100) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:16032 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:16032 > From: Giannandrea Castaldi > Date: Wed, 14 Jan 2004 13:11:28 +0100 > > leo wrote: > > Giannandrea Castaldi 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.