From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: Trying to right-align my window on startup Date: Thu, 9 Jan 2014 12:32:27 -0800 (PST) Message-ID: <28ab7799-fdc5-47c4-9ac0-f7db66771e7e@default> References: <83r48idw6z.fsf@gnu.org> <83mwj5ekrs.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1389299593 22142 80.91.229.3 (9 Jan 2014 20:33:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 9 Jan 2014 20:33:13 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Mickey Ferguson , Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 09 21:33:18 2014 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 1W1MI0-0006hZ-Ob for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Jan 2014 21:33:16 +0100 Original-Received: from localhost ([::1]:53984 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1MI0-0002qw-9P for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Jan 2014 15:33:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54192) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1MHa-0002pl-C1 for help-gnu-emacs@gnu.org; Thu, 09 Jan 2014 15:32:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W1MHR-0004bo-7j for help-gnu-emacs@gnu.org; Thu, 09 Jan 2014 15:32:50 -0500 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:30020) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1MHI-0004aB-6P; Thu, 09 Jan 2014 15:32:32 -0500 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by aserp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id s09KWSPp028277 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 9 Jan 2014 20:32:28 GMT Original-Received: from aserz7022.oracle.com (aserz7022.oracle.com [141.146.126.231]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s09KWRPT011179 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 9 Jan 2014 20:32:28 GMT Original-Received: from abhmp0007.oracle.com (abhmp0007.oracle.com [141.146.116.13]) by aserz7022.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s09KWRfr027707; Thu, 9 Jan 2014 20:32:27 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 141.146.126.69 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:95315 Archived-At: > ? (add-to-list 'default-frame-alist '(top . 0)) > > (add-to-list 'default-frame-alist '(left . 140)) > > (add-to-list 'initial-frame-alist '(height . 52)) > > (add-to-list 'default-frame-alist '(height . 50)) Sheesh. Just use `M-x customize-option default-frame-alist'. (And use a `custom-file', to keep Customize stuff out of your ~/.emacs.) > The problem here is that I want a generic file that will work for > multiple screen dimensions. A while ago I had tried going down > the path you have suggested here and just didn't know all of the > screen parameters, nor how to convert from one unit type to another. > That's why the -1 was used, as an attempt at using emacs' knowledge > of the screen's right edge location. Just use a negative integer (e.g. -1) to set the number of pixels from the right or bottom edge of your screen. See the Elisp manual, node `(elisp) Position Parameters'