From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rainer M Krug Newsgroups: gmane.emacs.help Subject: Re: How specify on the command line which .emacs to use? Date: Mon, 07 Sep 2015 10:17:20 +0200 Message-ID: References: <8737ysl03f.fsf@debian.uxu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1441613884 20869 80.91.229.3 (7 Sep 2015 08:18:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Sep 2015 08:18:04 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Sep 07 10:17:54 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 1ZYrcX-0001Pv-1o for geh-help-gnu-emacs@m.gmane.org; Mon, 07 Sep 2015 10:17:45 +0200 Original-Received: from localhost ([::1]:54418 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZYrcW-0003T4-TK for geh-help-gnu-emacs@m.gmane.org; Mon, 07 Sep 2015 04:17:44 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35487) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZYrcJ-0003So-UB for help-gnu-emacs@gnu.org; Mon, 07 Sep 2015 04:17:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZYrcF-00073T-Tt for help-gnu-emacs@gnu.org; Mon, 07 Sep 2015 04:17:31 -0400 Original-Received: from mail-wi0-f169.google.com ([209.85.212.169]:36760) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZYrcF-00073D-OK for help-gnu-emacs@gnu.org; Mon, 07 Sep 2015 04:17:27 -0400 Original-Received: by wicgb1 with SMTP id gb1so36207427wic.1 for ; Mon, 07 Sep 2015 01:17:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=from:to:subject:in-reply-to:references:user-agent:date:message-id :mime-version:content-type; bh=skMYj18JtmBu9NSrhHGOYO6g8saJUH0sVs9+Kpm9vqg=; b=azOjY4usuVVWjyu+9X4d3taFxwY4yyvsj/o2dj4J4oFlDlyCb82+Z2OOp07V+TUhw1 fIhluXoWlt4oLqae6jykauybfrXfY7hsO9dt+zqgbUqpHX8qJHBdCOWEppbRqXMxKVLp mIPZqI9M8e2zYB8/8H/YEvIY9b7jLqiUEfDQQA3T5b6Gd5KGUYhmwZskjuDJhe7suzJy 6hqPOlD/lXurrTM0iril++edSsk4o+Gl5cqsHHLi3rOn0haBUiKOdE0VHj5fyMV2Dq6t Fj0/NbNQgGmCuwJfYqK6vK7RWzTqeC7XhwI70e8wmL8LTEhRUZfUglK7MqUw/s8Lglim D4mQ== X-Received: by 10.180.8.164 with SMTP id s4mr32439393wia.5.1441613846733; Mon, 07 Sep 2015 01:17:26 -0700 (PDT) Original-Received: from Rainers-MacBook-Pro.local (arn78-1-88-186-171-7.fbx.proxad.net. [88.186.171.7]) by smtp.gmail.com with ESMTPSA id h9sm18665010wjx.20.2015.09.07.01.17.25 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 Sep 2015 01:17:25 -0700 (PDT) In-Reply-To: <8737ysl03f.fsf@debian.uxu> (Emanuel Berg's message of "Sun, 06 Sep 2015 05:04:36 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.212.169 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:107067 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Emanuel Berg writes: > BobD writes: > >> Is there a way I can specify on the command line >> which .emacs file to use? > > emacs(1) says: > > -u user, --user user > Load user's init file. > >> I am now using this command line: runemacs.exe -q -l >> /Directory/.emacs The "-q" means not to use a .emacs >> file. The "-l" loads the named file. But the "-q" >> suppresses saving customizations. > > Don't use customize, instead edit the .emacs file(s) > by hand using any text editor around - why not > Emacs itself? Agreed. But sometimes it is necessary to use customizations (or much easier, or di=3Done without my knowledge,...). So I have the following as the last statement in my .emacs file: ,---- | * Load customizations | Load customizations done through the Customization interface in emacs. | New customizations will be stored in this file. | #+begin_src emacs-lisp=20 | (setq custom-file "~/.emacs.d/customfile.el") | (load custom-file) | #+end_src `---- This should load the customizations, even when using the -q approach mentioned. And the customizations are in their own file. Cheers, Rainer =2D-=20 Rainer M. Krug email: Rainerkrugsde PGP: 0x0F52F982 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2 iQEcBAEBCAAGBQJV7UgUAAoJENvXNx4PUvmCSNAH/RwkegkCVA96D9sH257XNQP6 0kNJmR+RkAim7xTT7yn5S+JLDVfMuj6mdw1cwPRL20eG9H+V+qLRlIUg+jiYgRPi N7iI4umjmuuuzqtQtql4xyiBOFNv4CEzdWUX7uFDee/3Z61YjpH7znt/7s2l7a2/ ep/2jZ+QGzQVzjXMWMCnutTXPzOBcsS0NgqSQcBZzIsdmZSHLcfDdYAl1VdvCeOu WrqxUv6Bt7aDfhkcX5GqXKIfGHrlZlMFjl3RV0TRXCr5Jq5gxmn73ah8F4FSJShE L+IMxNNqrgPy6wUTLuV7Org16GHWjv6aaqLI+rRo5MczG3JtjxisBGQzOa46xhU= =XTdy -----END PGP SIGNATURE----- --=-=-=--