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: Multiple monitors, different setup Date: Sat, 14 Mar 2015 01:36:59 -0700 (PDT) Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1426341694 9042 80.91.229.3 (14 Mar 2015 14:01:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 14 Mar 2015 14:01:34 +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 15:01:34 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 1YWmdA-0001rt-AS for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Mar 2015 15:01:32 +0100 Original-Received: from localhost ([::1]:40894 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YWmd9-0001W9-Nq for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Mar 2015 10:01:31 -0400 X-Received: by 10.236.105.137 with SMTP id k9mr52192523yhg.14.1426322219812; Sat, 14 Mar 2015 01:36:59 -0700 (PDT) X-Received: by 10.140.42.23 with SMTP id b23mr811651qga.23.1426322219736; Sat, 14 Mar 2015 01:36:59 -0700 (PDT) Original-Path: usenet.stanford.edu!z107no288091qgd.0!news-out.google.com!q90ni144qgd.1!nntp.google.com!h3no288921qgf.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help 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 08:36:59 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:210883 X-Mailman-Approved-At: Sat, 14 Mar 2015 10:01:21 -0400 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:103166 Archived-At: 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