From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Vineet Naik Newsgroups: gmane.emacs.help Subject: Re: How to specify customized configuration file rather than "~/.emacs" ? Date: Thu, 13 Sep 2012 19:33:55 +0530 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d0444ec1925b16104c995c7a4 X-Trace: ger.gmane.org 1347545060 8545 80.91.229.3 (13 Sep 2012 14:04:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Sep 2012 14:04:20 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Z C Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 13 16:04:23 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 1TCA1k-0006Ie-Mn for geh-help-gnu-emacs@m.gmane.org; Thu, 13 Sep 2012 16:04:20 +0200 Original-Received: from localhost ([::1]:36217 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCA1g-0001QM-MZ for geh-help-gnu-emacs@m.gmane.org; Thu, 13 Sep 2012 10:04:16 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37998) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCA1S-0001Pg-MW for help-gnu-emacs@gnu.org; Thu, 13 Sep 2012 10:04:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TCA1M-0007t8-ST for help-gnu-emacs@gnu.org; Thu, 13 Sep 2012 10:04:02 -0400 Original-Received: from mail-wi0-f171.google.com ([209.85.212.171]:52086) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCA1M-0007sy-Lm for help-gnu-emacs@gnu.org; Thu, 13 Sep 2012 10:03:56 -0400 Original-Received: by wibhq4 with SMTP id hq4so5538893wib.12 for ; Thu, 13 Sep 2012 07:03:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=GpJii09FbLT/q4Bb/INQqEKjaYGdWV9Y710ThujOz6k=; b=nhfOC0+AY2Qxlc7q/OcLSNG0WZCnC15kurBM5Sc2nJFUBt7cLU3i9K4oXWm9bsboDn bItJSLZ+bmEKWOQt44JcytlfbXGppBVj92XA0gB43MD9T1VpYv4vI5Q2m8LX1sPpBNwS /ORb2IjoDFynBhwZb9JZKQLFO0cascbUMj8gusIcs0XF6lAYJZO2+N/nR6b6YjHp3vCN Qpqb/nQ1F1ywmtrqThHtDshofWXFvJTvBOr+hh6b4rpyiv3AzqxYpD4DHeABQb9+p6Cf GiGv/CK3Dudu51dOZPBY22sqrOL7A9ji89uHLbXJufB7rAI0NRXr49aj8RJzIbpEM9d3 l5EA== Original-Received: by 10.180.100.131 with SMTP id ey3mr5099268wib.15.1347545035288; Thu, 13 Sep 2012 07:03:55 -0700 (PDT) Original-Received: by 10.216.54.142 with HTTP; Thu, 13 Sep 2012 07:03:55 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.212.171 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:86745 Archived-At: --f46d0444ec1925b16104c995c7a4 Content-Type: text/plain; charset=ISO-8859-1 On Thu, Sep 13, 2012 at 7:13 PM, Z C wrote: > I just want emacs to load another file as the configuration file, and > ignore the default file ("~/.emacs"). > > Note that I don't want to change the original "~/.emacs" file. > > I've tried to change "$HOME" env variable, but it doesn't work. > If you mean you want to have emacs save the customization settings into some other file, then you need to add this code to ~/.emacs (setq custom-file "~/.emacs-custom.el") (load custom-file) More info here: http://www.gnu.org/software/emacs/manual/html_node/emacs/Saving-Customizations.html HTH. Regards, Vineet --f46d0444ec1925b16104c995c7a4 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On Thu, Sep 13, 2012 at 7:13 PM, Z C <zcnnbb@g= mail.com> wrote:
I just want emacs to load another file as the configuration file, and = ignore the default file ("~/.emacs").

Note that I don't want to change the original "~/.emacs" f= ile.

I've tried to change "$HOME" env va= riable, but it doesn't work.

If you mean you want to have emacs save the customiz= ation settings into some other file, then=A0
you need to add this code = to ~/.emacs

(setq custom-file "~/.emacs-custo= m.el")=A0
(load custom-file)


HTH.

Regards,=A0
Vin= eet


--f46d0444ec1925b16104c995c7a4--