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 16:00:23 -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 1089932608 30060 80.91.224.253 (15 Jul 2004 23:03:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 15 Jul 2004 23:03:28 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 16 01:03:23 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 1BlFG6-00051L-00 for ; Fri, 16 Jul 2004 01:03:22 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BlFIb-00078s-Hg for geh-help-gnu-emacs@m.gmane.org; Thu, 15 Jul 2004 19:05:57 -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 18:00:23 -0500 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:h/jyJZiTJO6Ofb7SLbPTulxZ0wQ= Original-Lines: 76 Original-NNTP-Posting-Host: 24.18.253.35 Original-X-Trace: sv3-6hScUwfI+kJq7LoU7YN+XdMEw9DxCoDv7wk3es/rOOMfhIYbgBULXyT45gCzq2xxBnWuJxxRwyzNUF7!+F+lJ1jeyJ1BZZrIdA6Q8nzsLfPNWYMut20nPdKSLbXtZVUTHtZnOtKf 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:124321 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:19656 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:19656 Michael Slass writes: Replying to my own post --- small change in step (4), so the output goes right into the *scratch* buffer >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-j 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 -- Mike Slass