From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: despen@verizon.net Newsgroups: gmane.emacs.help Subject: Re: set window size on init Date: Wed, 11 Nov 2009 15:05:06 -0500 Organization: A noiseless patient Spider Message-ID: References: <870a1e44-3904-487b-8d65-42ad53f5f3ec@w37g2000prg.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1257972052 632 80.91.229.12 (11 Nov 2009 20:40:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 11 Nov 2009 20:40:52 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 11 21:40:45 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1N8JzX-0000TF-W3 for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Nov 2009 21:40:36 +0100 Original-Received: from localhost ([127.0.0.1]:43283 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N8JzX-0000WP-J6 for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Nov 2009 15:40:35 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.straub-nv.de!feeder.eternal-september.org!eternal-september.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 24 Original-X-Trace: news.eternal-september.org U2FsdGVkX187QPZ9deEoJcqjt3dkn8WVF1Eo98OuRjIe86FdDEhj9uvDS6h3aUVR5amQEDtoD6PgIeTSMimKH1MR4AB8Wo3EIReUkA0XDeGK9QLt3uQy/QHfBJfcINRkNA9IZHbMC0JcuKDv1FZodg== Original-X-Complaints-To: abuse@eternal-september.org Original-NNTP-Posting-Date: Wed, 11 Nov 2009 20:05:07 +0000 (UTC) X-Auth-Sender: U2FsdGVkX1/BentOei0PvXFVaa8mNIycYF+OHfxdZlTT2ijO7M52iw== Cancel-Lock: sha1:kTfvxsKWNWgT+B2HjyZKBrmLPYg= sha1:9DfNuDMSZGh77T5wndzS2eYoqPk= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Original-Xref: news.stanford.edu gnu.emacs.help:174601 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:69676 Archived-At: Eli Zaretskii writes: >> From: Xah Lee >> 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.)