From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "B.T. Raven" Newsgroups: gmane.emacs.help Subject: Re: Initial frame geometry in w32 gnu emacs Date: Thu, 26 May 2005 06:58:04 -0500 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <119behl89mi3ccc@corp.supernews.com> References: <119a34ka8aac350@corp.supernews.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1117109245 23876 80.91.229.2 (26 May 2005 12:07:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 26 May 2005 12:07:25 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 26 14:07:24 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DbH8V-0003IZ-Jj for geh-help-gnu-emacs@m.gmane.org; Thu, 26 May 2005 14:06:53 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DbHCZ-00046C-Co for geh-help-gnu-emacs@m.gmane.org; Thu, 26 May 2005 08:11:03 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!sn-xit-02!sn-xit-06!sn-post-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Original-X-Complaints-To: abuse@supernews.com Original-Lines: 33 Original-Xref: shelby.stanford.edu gnu.emacs.help:131544 Original-To: help-gnu-emacs@gnu.org 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:27003 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:27003 "Eli Zaretskii" wrote in message news:mailman.1852.1117078839.25862.help-gnu-emacs@gnu.org... > > From: "B.T. Raven" > > Date: Wed, 25 May 2005 18:37:14 -0500 > > > > According to the docs, launching under X with the --geometry argument > > (along with suitable parameters) will size and position the initial > > frame on the screen. Can the same thing be accomplished by adding code > > to the .emacs? > > Yes. Here's an example: > > (add-to-list 'default-frame-alist '(top . 0)) > (add-to-list 'default-frame-alist '(left . 140)) > (add-to-list 'default-frame-alist '(height . 42)) > > Thanks, Eli. I didn't know about add-to-list, so I ended up using: (setq initial-frame-alist '((top . 370) (left . 1) (width . 163) (height . 17))) which fills the bottom half of a 17" monitor. (I may have to modify it for the laptop.) During emacs startup two other frame sizes flash on the screen briefly but this is only an esthetic blemish. There must be lower level settings of the frame geometry not accessible to the user. Ed