From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Michael Slass Newsgroups: gmane.emacs.help Subject: Re: starting up with two frames on different monitors in Mac OS X Date: Thu, 15 Jul 2004 15:55:45 -0700 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1089932279 28976 80.91.224.253 (15 Jul 2004 22:57:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 15 Jul 2004 22:57:59 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 16 00:57:49 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BlFAj-0004cs-00 for ; Fri, 16 Jul 2004 00:57:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BlFDE-0005Dx-EV for geh-help-gnu-emacs@m.gmane.org; Thu, 15 Jul 2004 19:00:24 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!border1.nntp.dca.giganews.com!nntp.giganews.com!local1.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail Original-NNTP-Posting-Date: Thu, 15 Jul 2004 17:55:46 -0500 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:EBWzy1UNTxJkh2sbU60sSArar4M= Original-Lines: 67 Original-NNTP-Posting-Host: 24.18.253.35 Original-X-Trace: sv3-fxrqUtpNYZ/FzRI+FcaU1vFllNkLUe9jDGY96ovWjmex8DMfqRzj0nQBn895giKO4y4jdDf54Zxz4em!JQMP5WASG7c31XOkjlTvHUr2TY3vo6m6owM1TOy9RuvdeL6rcXyAWITR Original-X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.1 Original-Xref: shelby.stanford.edu gnu.emacs.help:124320 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: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:19655 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:19655 Gilbert Harman writes: >What can I put in my .emacs so that emacs will start up with two frames, one >on each of my monitors. I am using Gnu Emacs 21.3.50.1 in Mac OS 10.3.4. > >Thanks in advance for any help on this. > > Gil > > > > Professor Harman: I think this recipe will do: 1) start emacs with no filename, so you'll visit the *scratch* buffer 2) resize the frame on the first monitor to the size you want 3) enter (frame-parameters) in the *scratch* buffer 4) evaluate the form: place the cursor after the closing paren, and type C-x C-e 5) in the resulting alist, there will be cells that show where the top and left corners of the frame are: (top . 10) ... (left . 0) copy those cells for later use; we'll call them init-top and init-left 6) Drag the frame to your other monitor, and resize it to the shape you'd like it to start with. 7) repeat steps 4 and 5; we'll call these cells second-top and second-left. NB: if the second frame is to the left of the first, these cells may have a negative number, and + instead of a . 8) add to your .emacs (replacing with the cells gathered above): [near the top of .emacs]: (mapcar (lambda (property-cons) (assq-delete-all (car property-cons) default-frame-alist) (add-to-list 'default-frame-alist property-cons)) '( )) [near the bottom of .emacs]: (make-frame '( )) On my machine, I get something like this (mapcar (lambda (property-cons) (assq-delete-all (car property-cons) default-frame-alist) (add-to-list 'default-frame-alist property-cons)) '((top . 1) (left . 1))) (make-frame '((top + -73) (left + -1282))) Best regards, and don't hesitate to contact me if you have any problems. -- Mike Slass, '90