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: How to specify customized configuration file rather than"~/.emacs" ? Date: Thu, 13 Sep 2012 09:04:28 -0700 Message-ID: References: <87oblaxb84.fsf@gmail.com><20120913143835.GE32461@kuru.dyndns-at-home.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1347552291 12804 80.91.229.3 (13 Sep 2012 16:04:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Sep 2012 16:04:51 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "'PJ Weisberg'" , "'Suvayu Ali'" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 13 18:04:54 2012 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 1TCBuQ-00037W-4R for geh-help-gnu-emacs@m.gmane.org; Thu, 13 Sep 2012 18:04:54 +0200 Original-Received: from localhost ([::1]:38402 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCBuM-000642-CU for geh-help-gnu-emacs@m.gmane.org; Thu, 13 Sep 2012 12:04:50 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42258) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCBuC-0005sv-8b for help-gnu-emacs@gnu.org; Thu, 13 Sep 2012 12:04:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TCBu6-0002nv-JJ for help-gnu-emacs@gnu.org; Thu, 13 Sep 2012 12:04:40 -0400 Original-Received: from acsinet15.oracle.com ([141.146.126.227]:33514) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCBu6-0002na-Cx for help-gnu-emacs@gnu.org; Thu, 13 Sep 2012 12:04:34 -0400 Original-Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by acsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q8DG4UT4032654 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 13 Sep 2012 16:04:31 GMT Original-Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by ucsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q8DG4UWT005789 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 13 Sep 2012 16:04:30 GMT Original-Received: from abhmt116.oracle.com (abhmt116.oracle.com [141.146.116.68]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q8DG4T53028367; Thu, 13 Sep 2012 11:04:29 -0500 Original-Received: from dradamslap1 (/130.35.178.248) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 13 Sep 2012 09:04:29 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: Ac2RxFnPAwvd0bUyS6SyS2Cft1Z0rgABC9jQ X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: ucsinet22.oracle.com [156.151.31.94] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 141.146.126.227 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:86755 Archived-At: > > $ emacs -Q -l ~/special-config.el > > You'll probably also want to put (setq user-init-file > "~/special-config.el") in that file, or Emacs will refuse to save > customizations That's all well and good, but to me the simplest and long-standard approach is simply to set option `custom-file' and load it from your ~/.emacs file (early or late in the file, depending on what you want/need). Dunno why anyone would let Customize diddle with their ~/.emacs. The _default_ for Emacs should be for Customize to save customizations to a reasonable default `custom-file', just like we do for bookmark files and all the rest. Whoever let Customize mess with ~/.emacs in the first place should long ago have been sent back to GnuLand for regrooving. ;-)