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

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

RE: Replacing custom-set-variables


From: Drew Adams
Subject: RE: Replacing custom-set-variables
Date: Sat, 13 Sep 2008 15:20:11 -0700

> In .emacs I have a few variables defined using:
> (custom-set-variables
>   '(var1 val1)
>   '(var2 val2)
>   '(var3 val3))
> 
> How can I define those same variables in .emacs
> without using custom-set-variables?

Typically:

(setq var1 val1
      var2 val2
      var3 val3)

But see also `setq-default'; it might be more appropriate for some variables.

As an alternative to not using `custom-set-variables', consider having a
separate custom file, the value of variable `custom-file', and letting Customize
manage `custom-set-variables' there. That will keep Customize out of your init
file (~/.emacs). See the Emacs manual, node Saving Customizations.





reply via email to

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