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: Fri, 14 Sep 2012 09:02:09 -0700 Message-ID: <35CB8E5F809A4C17A05E8F1ADEA0146D@us.oracle.com> References: 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 1347638562 26042 80.91.229.3 (14 Sep 2012 16:02:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 14 Sep 2012 16:02:42 +0000 (UTC) To: "'Z C'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 14 18:02:45 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 1TCYLo-0000ws-FO for geh-help-gnu-emacs@m.gmane.org; Fri, 14 Sep 2012 18:02:40 +0200 Original-Received: from localhost ([::1]:60833 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCYLk-0007gd-Hh for geh-help-gnu-emacs@m.gmane.org; Fri, 14 Sep 2012 12:02:36 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49115) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCYLb-0007fa-M3 for help-gnu-emacs@gnu.org; Fri, 14 Sep 2012 12:02:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TCYLS-0003pg-Bi for help-gnu-emacs@gnu.org; Fri, 14 Sep 2012 12:02:27 -0400 Original-Received: from rcsinet15.oracle.com ([148.87.113.117]:42158) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCYLS-0003pU-57 for help-gnu-emacs@gnu.org; Fri, 14 Sep 2012 12:02:18 -0400 Original-Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by rcsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q8EG2ERo030682 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 14 Sep 2012 16:02:15 GMT Original-Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q8EG2E2R002801 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 14 Sep 2012 16:02:14 GMT Original-Received: from abhmt111.oracle.com (abhmt111.oracle.com [141.146.116.63]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q8EG2Ebf030480; Fri, 14 Sep 2012 11:02:14 -0500 Original-Received: from dradamslap1 (/10.159.182.71) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 14 Sep 2012 09:02:13 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: Ac2SjdZ6EoWHLq6jT8eVviYck/Hw6gAA9NEA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 148.87.113.117 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:86768 Archived-At: > What I specifically need is that, let emacs treat another > file as the "~/.emacs" file. > > This file should behaves EXACTLY as "~/.emacs" except that > they have different file name. > > That means, if I click Options -> Save Options, emacs > would write changes to this specific file. No, the last two sentences do not say the same thing. If you want what you say in the second sentence, then use option `custome-file', as I said before. Then just put (load-file custom-file) in your .emacs. This way, you still have your .emacs file for any non-Customize customizations you might want to make. And you can choose at which point in your .emacs you want to load the customizations provided by Customize, by placing (load-file custom-file) wherever you want. Please read the Emacs manual about `custom-file': C-h r i custom-file