From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Esteban Fornal" Newsgroups: gmane.emacs.help Subject: Re: Default Window Size Date: Sat, 13 Sep 2008 10:06:40 +2000 Message-ID: <2e5864060809120706m4244ece2q5c256ef1cf3af833@mail.gmail.com> References: <7f502349-d81f-40fa-a465-bb09d2e01b24@k30g2000hse.googlegroups.com> <002f01c914df$466f94b0$0200a8c0@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_39796_17966211.1221228400553" X-Trace: ger.gmane.org 1221233278 2113 80.91.229.12 (12 Sep 2008 15:27:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Sep 2008 15:27:58 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 12 17:28:54 2008 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 1KeAZp-00017x-Pl for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Sep 2008 17:28:54 +0200 Original-Received: from localhost ([127.0.0.1]:53229 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KeAYo-0002y4-Nq for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Sep 2008 11:27:50 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ke9IL-0006EK-2n for help-gnu-emacs@gnu.org; Fri, 12 Sep 2008 10:06:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ke9IJ-0006Dd-0Y for help-gnu-emacs@gnu.org; Fri, 12 Sep 2008 10:06:43 -0400 Original-Received: from [199.232.76.173] (port=51019 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ke9II-0006DR-Mt for help-gnu-emacs@gnu.org; Fri, 12 Sep 2008 10:06:42 -0400 Original-Received: from wf-out-1314.google.com ([209.85.200.172]:24466) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ke9II-00056k-7Y for help-gnu-emacs@gnu.org; Fri, 12 Sep 2008 10:06:42 -0400 Original-Received: by wf-out-1314.google.com with SMTP id 28so810411wfc.24 for ; Fri, 12 Sep 2008 07:06:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=KjUC5ZDOhDwYqOFvn7kNH/sobix/9OSUuF18pJp2I60=; b=sM1ozoBwNwJeFDeL/4OlYzGcEK84Uq/kMjxAc6mAPsqWeN/6Hhsyx2uIk6D3kmm0E8 O1M9iq64wtJYHyoWtZK0/++3MlyzCNifwXpf4uLG3QsGH3FgppC9q71MAmUGlpOXMNvR agzzHrk9WNQgs0GckZuxsKhPCsx7TbC/Lw4NU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=nvuTsT7CyJ3IggcvGnXjzOKICDaOPdCuLoQBVkZ6KVpmlrc737keCGWXRnPS3ahlbX hE9wUjqnhB3RyaFgSFbmijQSU7idGYLnoAuY75k1V4DPeon7gezWeeQ5SsnNrK0N6I6X 3xL8X74hcJqR1YXGe3U0M3ekCfc/UgiugakTA= Original-Received: by 10.141.171.6 with SMTP id y6mr2652147rvo.85.1221228400561; Fri, 12 Sep 2008 07:06:40 -0700 (PDT) Original-Received: by 10.140.178.4 with HTTP; Fri, 12 Sep 2008 07:06:40 -0700 (PDT) In-Reply-To: <002f01c914df$466f94b0$0200a8c0@us.oracle.com> X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-Mailman-Approved-At: Fri, 12 Sep 2008 11:27:29 -0400 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:57479 Archived-At: ------=_Part_39796_17966211.1221228400553 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 2008/9/13 Drew Adams > > is there any way to set the default window size of emacs in .emacs? > > I.e. to achieve the same effect as starting with --geometry=width x > > height? If not, is there any workaround for that, i.e., placing some > > default command line options in an environment variable? > > > > For a given window, is there any way to locally restrict the width to > > a certain value? I.e., say the window has width 200, but in a certain > > buffer I don't want to exceed the 80 signs limit. > > Customize option `default-frame-alist'. See the Emacs manual, keeping in > mind > that what you call "window" (a window-manager window) is called a "frame" > in > Emacs. > > > I have: > ;; Posicionamiento en inicio (set-frame-position (selected-frame) 100 10) (set-frame-height (selected-frame) 48) (set-frame-width (selected-frame) 100) ------=_Part_39796_17966211.1221228400553 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
2008/9/13 Drew Adams <drew.adams@oracle.com>
> is there any way to set the default window size of emacs in .emacs?
> I.e. to achieve the same effect as starting with --geometry=width x
> height? If not, is there any workaround for that, i.e., placing some
> default command line options in an environment variable?
>
> For a given window, is there any way to locally restrict the width to
> a certain value? I.e., say the window has width 200, but in a certain
> buffer I don't want to exceed the 80 signs limit.

Customize option `default-frame-alist'. See the Emacs manual, keeping in mind
that what you call "window" (a window-manager window) is called a "frame" in
Emacs.


I have:
;; Posicionamiento en inicio
(set-frame-position (selected-frame) 100 10)
(set-frame-height (selected-frame) 48)
(set-frame-width (selected-frame) 100)
------=_Part_39796_17966211.1221228400553--