all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: despen@verizon.net
To: help-gnu-emacs@gnu.org
Subject: Re: set window size on init
Date: Wed, 11 Nov 2009 15:05:06 -0500	[thread overview]
Message-ID: <icskckygi5.fsf@verizon.net> (raw)
In-Reply-To: mailman.10516.1257964476.2239.help-gnu-emacs@gnu.org

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Xah Lee <xahlee@gmail.com>
>> Date: Tue, 10 Nov 2009 11:57:14 -0800 (PST)
>> 
>> i have, at the end of my .emacs this code:
>> 
>> ; set window size to 100x58 chars.
>> (set-frame-size (selected-frame) 100 58)
>> 
>> however, it doesn't work.
>> But eval-region the code itself would work.
>
> Does it help to run this from term-setup-hook or window-setup-hook?
>
> The reason for the inconsistency is that Emacs initializes the GUI
> display at some specific point during startup, and any customizations
> of the display before that point will generally be overridden.

It might but this page suggests some solutions:

http://emacsblog.org/2007/01/29/maximize-on-startup-part-1/

(The one with the initial-frame-alist seems most useful.)


  parent reply	other threads:[~2009-11-11 20:05 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-10 19:57 set window size on init Xah Lee
2009-11-10 20:39 ` despen
2009-11-11  8:32 ` Kiwon Um
2009-11-11 21:01   ` Xah Lee
2009-11-11 18:31 ` Eli Zaretskii
     [not found] ` <mailman.10516.1257964476.2239.help-gnu-emacs@gnu.org>
2009-11-11 20:05   ` despen [this message]
2009-11-14  6:51     ` Jonathan Groll

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=icskckygi5.fsf@verizon.net \
    --to=despen@verizon.net \
    --cc=help-gnu-emacs@gnu.org \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.