From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rob Kinsey Newsgroups: gmane.emacs.help Subject: Re: Multiple monitors, different setup Date: Sat, 14 Mar 2015 09:42:17 -0700 (PDT) Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1426351537 27726 80.91.229.3 (14 Mar 2015 16:45:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 14 Mar 2015 16:45:37 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Mar 14 17:45:23 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YWpBi-0003eu-V3 for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Mar 2015 17:45:23 +0100 Original-Received: from localhost ([::1]:41366 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YWpBi-0005L5-Cp for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Mar 2015 12:45:22 -0400 X-Received: by 10.66.249.35 with SMTP id yr3mr48740941pac.13.1426351337946; Sat, 14 Mar 2015 09:42:17 -0700 (PDT) X-Received: by 10.140.36.134 with SMTP id p6mr835502qgp.26.1426351337579; Sat, 14 Mar 2015 09:42:17 -0700 (PDT) Original-Path: usenet.stanford.edu!news.glorb.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!hl2no12006649igb.0!news-out.google.com!q90ni143qgd.1!nntp.google.com!z107no523737qgd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=79.77.218.79; posting-account=mpITiwoAAAC6owAvdfg3tNe-YYtNllG_ Original-NNTP-Posting-Host: 79.77.218.79 User-Agent: G2/1.0 Injection-Date: Sat, 14 Mar 2015 16:42:17 +0000 Original-Lines: 25 Original-Xref: usenet.stanford.edu gnu.emacs.help:210888 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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 Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:103167 Archived-At: On Saturday, March 14, 2015 at 8:37:00 AM UTC, Rob Kinsey wrote: > Hi all, > > Just getting into emacs right now and have got a set up I am happy with using the .emacs file. > > At present I have a macbook pro and an external monitor. when the two are connected, to get emacs opening how I want to, i.e. open on non primary monitor and nearly maximized, I have used this line in the .emacs file: > > (setq default-fram-alist > '((top + -550) (left + -1400) (width . 190) (height . 60))) > > which puts it nicely on my macbooks monitor which when docked is not the primary monitor. > > Is there a way that I can have the .emacs file do a check to see if the second monitor is present so that when it is not docked, my emacs screen can be re positioned so it is in standard default out of the box emacs mode? > > I am assuming an if statement in the lisp checking for dvi port but not sure how. > > any help on this would be greatly appreciated. > > Kind regards > > P166BUG Thanks very much for your replies, I can do a little more research now, still learning, just need a nudge from time to time. Regards P166BUG