From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Multiple monitors, different setup Date: Sat, 14 Mar 2015 15:45:26 +0200 Message-ID: <837fuj3d6x.fsf@gnu.org> References: NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1426340759 26878 80.91.229.3 (14 Mar 2015 13:45:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 14 Mar 2015 13:45:59 +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 14:45:52 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 1YWmNx-0003Sb-HL for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Mar 2015 14:45:49 +0100 Original-Received: from localhost ([::1]:40855 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YWmNw-0004Gv-VA for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Mar 2015 09:45:48 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45604) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YWmNk-0004Gh-3p for help-gnu-emacs@gnu.org; Sat, 14 Mar 2015 09:45:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YWmNg-00020o-Qd for help-gnu-emacs@gnu.org; Sat, 14 Mar 2015 09:45:35 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:48566) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YWmNg-00020U-FI for help-gnu-emacs@gnu.org; Sat, 14 Mar 2015 09:45:32 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NL700H00EU8QG00@a-mtaout22.012.net.il> for help-gnu-emacs@gnu.org; Sat, 14 Mar 2015 15:45:31 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NL700HUOFJUR120@a-mtaout22.012.net.il> for help-gnu-emacs@gnu.org; Sat, 14 Mar 2015 15:45:31 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.172 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:103165 Archived-At: > From: Javier > Date: Sat, 14 Mar 2015 13:24:09 +0000 (UTC) > > > 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? > > don't know much about MacOs. I'd try look at this info page > > (info "(elisp) Multiple Terminals") > > (x-display-list) will give you a list of the displays available for > the Xserver. > > If you want the sizes of the displays I don't know how to get them > directly from elisp. The same node mentioned above describes the function display-monitor-attributes-list available in the recent Emacs versions, which can provide this information.