From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Suvayu Ali Newsgroups: gmane.emacs.help Subject: Re: How to specify customized configuration file rather than"~/.emacs" ? Date: Sat, 15 Sep 2012 16:05:55 +0200 Message-ID: <20120915140555.GK32461@kuru.dyndns-at-home.com> References: <35CB8E5F809A4C17A05E8F1ADEA0146D@us.oracle.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1347717968 2938 80.91.229.3 (15 Sep 2012 14:06:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 15 Sep 2012 14:06:08 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Sep 15 16:06:12 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 1TCt0e-0008Th-D8 for geh-help-gnu-emacs@m.gmane.org; Sat, 15 Sep 2012 16:06:12 +0200 Original-Received: from localhost ([::1]:56722 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCt0a-0003iv-Ey for geh-help-gnu-emacs@m.gmane.org; Sat, 15 Sep 2012 10:06:08 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50080) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCt0U-0003iq-77 for help-gnu-emacs@gnu.org; Sat, 15 Sep 2012 10:06:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TCt0T-0001Ut-4G for help-gnu-emacs@gnu.org; Sat, 15 Sep 2012 10:06:02 -0400 Original-Received: from mail-wg0-f49.google.com ([74.125.82.49]:35765) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCt0S-0001Uj-UZ for help-gnu-emacs@gnu.org; Sat, 15 Sep 2012 10:06:01 -0400 Original-Received: by wgbdt14 with SMTP id dt14so121923wgb.30 for ; Sat, 15 Sep 2012 07:05:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=nIhAHoZ5re4KnNxOXeuLlRKWKf1oR33A3XSoVSMZty0=; b=Q5aZiZ9Qp6uqcrBv52kjt2tvrfRRK0S4LvzSDHb/6CWS6C5GuQXdo62RA3djN3cA2O fM2+VA3ISfJN3h6EgfsN/faT+xtrqDsfy1wE3Z7srtXxs0QDCtuSDAzdpfcdJuh5dKpD cyxh/gdkagMFSDC2Stnpl/ijY7OB3UB36rSdV1fFgZpputMxh6KBcz5pRQjI1VKHb0jw Ab7ZtLb31p+RawpxDMLY9Uj9FYBlcJNeDmCUsNxgvTAEy9IMxITkqZ1dhUuZVWW1OR/o ypT5qUYhJgtMvfL144wmx0V+NVR35AUl07o4Lvp+rWaD04gqVQWYu7f4wOP2VJ2bru9k 5CvQ== Original-Received: by 10.180.107.103 with SMTP id hb7mr5047266wib.3.1347717959214; Sat, 15 Sep 2012 07:05:59 -0700 (PDT) Original-Received: from kuru.dyndns-at-home.com (pb-d-128-141-52-158.cern.ch. [128.141.52.158]) by mx.google.com with ESMTPS id ct3sm5277382wib.5.2012.09.15.07.05.57 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 15 Sep 2012 07:05:58 -0700 (PDT) Content-Disposition: inline In-Reply-To: <35CB8E5F809A4C17A05E8F1ADEA0146D@us.oracle.com> User-Agent: Mutt/1.5.21 (2011-07-01) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 74.125.82.49 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:86793 Archived-At: Hi, On Fri, Sep 14, 2012 at 09:02:09AM -0700, Drew Adams wrote: > > > 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 > To add an example to what Drew said; you can look at my init file here: Hope this helps. -- Suvayu Open source is the future. It sets us free.