Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Save "custom-set-variables" with elisp

If I bring up emacs' customization interface, edit a variable, and then set+save it, its new value gets stored in a (custom-set-variables ...) list in my init file.

Now, let's say I modified a variable's value in elisp (using (setq ...) or something else).

How can I save this new value to the (custom-set-variables ...) list using elisp instead of the interactive interface?

like image 964
Malabarba Avatar asked Jul 04 '13 14:07

Malabarba


1 Answers

Looks like you are looking for customize-save-variable

like image 193
juanleon Avatar answered Nov 05 '22 02:11

juanleon