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

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

Re: set window size on init


From: despen
Subject: Re: set window size on init
Date: Wed, 11 Nov 2009 15:05:06 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

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.)


reply via email to

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