[Top][All Lists]

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

Re: programatically save customization for future sessions

From: emacsnews
Subject: Re: programatically save customization for future sessions
Date: Sat, 31 Jan 2009 22:36:45 +0000

address@hidden (Pascal J. Bourguignon) writes:

> <address@hidden> writes:
>>    is there any function to save a variable customization for future
>>    sessions (i.e. to the custom-set-variables section of my .emacs),
>>    or do I have to write it myself?
>>    Just to clarify; I know how to save a customization manually from the
>>    custom buffer, but I want to do this by calling a function from
>>    within some other elisp code.
> What is your bet?
> How do you think the customization buffer does it?
> Do you know about C-h -k ?
> Since the customization buffer saves these variables when you type C-x
> C-s, you can learn what command is called by typing in a
> customization buffer:  C-h k C-x C-s
> In the help buffer giving the help about that command, you can clic on
> the link to the command source, and there you can read it and find
> what function is called to save all the custom variables.  Go see the
> source of that function to check that it does exactly what you want,
> and if yes, then use it.
Hi Pascal,
          that was the first thing I tried.
It lead me to the function that saves all changes in the *Customize     
Group* buffer (I want to save just a single variable). I followed a
trail which led back to a c function, and still didn't give me the answer.


reply via email to

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