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?
(setqcommand to my init file, but thats's not what I'm looking for. I need an automated method for saving the variable. - Malabarbasetqwhen saving custom set variables with the user interface; and, thosesetqvariables cannot generally be overwritten through the user-interface. For variables set by hand that will be saved with the user interface, you would actually need to use the same format within your elisp code -- i.e., the same format you see after saving with the user interface. Long story short, if you usedsetq-- you cannot get there from here -- unless you use a newsetqthat loads after the priorsetqeffectively redefining it. - lawlist.../lisp/cus-edit.eland.../lisp/custom.el- lawlist