all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to save custom variable programmatically?
@ 2020-11-10  7:51 Jean Louis
  2020-11-10 10:43 ` Robert Pluim
                   ` (2 more replies)
  0 siblings, 3 replies; 24+ messages in thread
From: Jean Louis @ 2020-11-10  7:51 UTC (permalink / raw)
  To: GNU Emacs Help

I would like to use custom variables in such way to ask user
pragmatically, not through customize interface, to change a
variable. This could be for example user's location.

Upon changing it, I would like programatically to save it for future.

Should I use below function? Or maybe something else is recommended?

(defun customize-save-variable (variable value &optional comment)

  This way it is not working:
  
(require 'cus-edit)
(customize-save hyperscope-default-server "localhost")

Any good way?



^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2020-11-17 21:30 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-10  7:51 How to save custom variable programmatically? Jean Louis
2020-11-10 10:43 ` Robert Pluim
2020-11-10 13:42   ` Jean Louis
2020-11-10 11:23 ` Michael Heerdegen
2020-11-10 13:55   ` Jean Louis
2020-11-10 14:36     ` Michael Heerdegen
2020-11-10 19:19       ` Jean Louis
2020-11-10 20:42         ` Marcin Borkowski
2020-11-10 21:46           ` Jean Louis
2020-11-11 21:20             ` Marcin Borkowski
2020-11-10 20:43         ` Michael Heerdegen
2020-11-10 21:52           ` Jean Louis
2020-11-11 18:00             ` Michael Heerdegen
2020-11-11 18:05               ` Jean Louis
2020-11-17 12:24             ` Michael Heerdegen
2020-11-17 15:07               ` Jean Louis
2020-11-10 21:15         ` Michael Heerdegen
2020-11-10 21:55           ` Jean Louis
2020-11-11 10:55             ` Michael Heerdegen
2020-11-17 15:44           ` Jean Louis
2020-11-17 16:38             ` Michael Heerdegen
2020-11-17 21:30               ` Stefan Monnier
2020-11-10 16:24 ` Drew Adams
2020-11-10 19:23   ` Jean Louis

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.