help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using "Emacs Configure" **and** modifying .emacs


From: Dan Espen
Subject: Re: Using "Emacs Configure" **and** modifying .emacs
Date: Thu, 10 Aug 2017 13:47:57 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux)

Drew Adams <drew.adams@oracle.com> 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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]