Function: persist-symbol

persist-symbol is a byte-compiled function defined in persist.el.

Signature

(persist-symbol SYMBOL INITVALUE)

Documentation

Make SYMBOL a persistent variable.

INITVALUE is the value to which SYMBOL will be set if persist-reset is called. INITVALUE is set for the session and will itself not persist across sessions.

This does force the loading of value from this directory, so to persist a variable, you will normally need to call persist-load to load a previously saved location.

Source Code

;; Defined in ~/.emacs.d/elpa/persist-0.8/persist.el
(defun persist-symbol (symbol initvalue)
  "Make SYMBOL a persistent variable.

INITVALUE is the value to which SYMBOL will be set if `persist-reset' is
called.  INITVALUE is set for the session and will itself not persist
across sessions.

This does force the loading of value from this directory, so to
persist a variable, you will normally need to call `persist-load'
to load a previously saved location."
  (add-to-list 'persist--symbols symbol)
  (put symbol 'persist t)
  (put symbol 'persist-default (persist-copy initvalue)))