From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Dan Espen Newsgroups: gmane.emacs.help Subject: Re: Using "Emacs Configure" **and** modifying .emacs Date: Thu, 10 Aug 2017 13:47:57 -0400 Organization: A noiseless patient Spider Message-ID: References: <1502373086.1171866.1069247696.71F9FED4@webmail.messagingengine.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1502387525 24039 195.159.176.226 (10 Aug 2017 17:52:05 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 10 Aug 2017 17:52:05 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 10 19:52:01 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dfrci-0005ko-5Q for geh-help-gnu-emacs@m.gmane.org; Thu, 10 Aug 2017 19:51:56 +0200 Original-Received: from localhost ([::1]:54521 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dfrco-0000Da-Gf for geh-help-gnu-emacs@m.gmane.org; Thu, 10 Aug 2017 13:52:02 -0400 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!nzgate1.xs4all.net!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!2a00:1d38:fa:105::184.MISMATCH!feed.usenet.farm!feeder4.usenet.farm!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 34 Original-Injection-Info: mx02.eternal-september.org; posting-host="b4f0f2e796b1ea9d1a3a065fc77d57ad"; logging-data="2838"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/dX6IWX+faqE5umTuNNOzvpEg1BR7Cv3o=" Cancel-Lock: sha1:PnP9fnjhkuJNDPSXWDMYNwK3Shs= Original-Xref: usenet.stanford.edu gnu.emacs.help:219872 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:113970 Archived-At: Drew Adams writes: >> What do I have to do to keep my settings and thos Emacs is writing, apart? I >> don't want Emacs to override my settings, and I don't want the Emacs >> configuration tool to get confused, just because my .emacs file contains >> things I have put there. > > Set variable `custom-file' to a file other than your init file. > Customize will then use that for the settings it writes, instead > of using your init file. > > At an appropriate point in your init file, load the value of `custom-file'. > For example: > > (setq custom-file "/my/path/to/my-customizations.el"))) > (load-file custom-file) ; Load your customizations. > > See the Emacs manual, node `Saving Customizations' for more info about > `custom-file'. > > Note that even though `custom-file' is a user option, you can't easily > let Customize manage it - just set it using `setq'. > > (IMHO, *everyone* should use variable `custom-file', to keep Customize > away from their init file.) I'm doing fine using customize and manual changes to .emacs. Emacs keeps all it's changes in one place in the .emacs without any special care on my part. So far anyway. -- Dan Espen