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

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

Re: programatically save customization for future sessions


From: Pascal J. Bourguignon
Subject: Re: programatically save customization for future sessions
Date: Sat, 31 Jan 2009 16:34:55 +0100
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/22.3 (darwin)

<emacsnews@aleblanc.cotse.net> 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.

-- 
__Pascal Bourguignon__


reply via email to

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