From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: William Case Newsgroups: gmane.emacs.help Subject: Setting geometry for second frame ?? Date: Sat, 12 Sep 2009 08:03:29 -0400 Message-ID: <1252757015.2294.32.camel@CASE> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1252757146 20822 80.91.229.12 (12 Sep 2009 12:05:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 12 Sep 2009 12:05:46 +0000 (UTC) To: Emacs Help List Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Sep 12 14:05:39 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 1MmRMJ-0005j2-D8 for geh-help-gnu-emacs@m.gmane.org; Sat, 12 Sep 2009 14:05:39 +0200 Original-Received: from localhost ([127.0.0.1]:49925 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MmRMI-0001PH-HS for geh-help-gnu-emacs@m.gmane.org; Sat, 12 Sep 2009 08:05:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MmRLv-0001On-7O for help-gnu-emacs@gnu.org; Sat, 12 Sep 2009 08:05:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MmRLq-0001Ne-NL for help-gnu-emacs@gnu.org; Sat, 12 Sep 2009 08:05:14 -0400 Original-Received: from [199.232.76.173] (port=59380 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MmRLq-0001Nb-Jn for help-gnu-emacs@gnu.org; Sat, 12 Sep 2009 08:05:10 -0400 Original-Received: from smtp110.rog.mail.re2.yahoo.com ([206.190.37.120]:27040) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1MmRLq-0003AY-5M for help-gnu-emacs@gnu.org; Sat, 12 Sep 2009 08:05:10 -0400 Original-Received: (qmail 9105 invoked from network); 12 Sep 2009 12:05:09 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=rogers.com; h=Received:X-YMail-OSG:X-Yahoo-Newman-Property:Subject:From:To:Content-Type:Date:Message-Id:Mime-Version:X-Mailer:Content-Transfer-Encoding; b=bu7KR+GWZ36qUL2DBKIWNOXyYeSX/hsP4oLxT0+gqeVUN+XEYxW2rET1L9UHr5wsBaGCZ++O1A3fpj/Cdo0UMaF+QUMPXdfpPqG2iwlV9/H6CKBKpzwxNBcdiRSdBBHHfuE16Ij8ZBRcfPMSNN57vFWVCCy5JC/tbGhjeTF6PKw= ; Original-Received: from unknown (HELO ?192.168.1.3?) (billlinux@99.245.242.191 with plain) by smtp110.rog.mail.re2.yahoo.com with SMTP; 12 Sep 2009 12:05:09 -0000 X-YMail-OSG: aN_O.jMVM1kM.fLhf5moheCXvobfLff0.LkXw2c77YEjt_GJswNfZfLqzf_wRGI4Sw-- X-Yahoo-Newman-Property: ymail-3 X-Mailer: Evolution 2.26.3 (2.26.3-1.fc11) X-detected-operating-system: by monty-python.gnu.org: FreeBSD 6.x (1) 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:68075 Archived-At: Hi; How do you set the size of a secondary frame? My Xresources file is set to 'Emacs.Geometry: 80x55+96+35'. That size, generally speaking, is the default size I am most comfortable with. However, I have a key binding that opens a second frame containing a text file in which I keep my notes as I am working. (global-set-key [(super f1)] (lambda() (interactive)(find-file-other-frame "~/Documents/C/Text/C-Notes.txt"))) I want this second frame to open with a geometry of 75x55 so that I can fit two frames, side-by-side, on my desktop. I don't want to change my Xresources file unless there is a safe way to write a conditional command in Xresources, nor compromise on my default setting. Is there a way to do this using a key binding to an existing function or do I have to write my own function? If I have to write my own function, could you outline which functions and/or variables I might need to use? -- Regards Bill Fedora 11, Gnome 2.26.3 Evo.2.26.3, Emacs 23.1.1