File: persist.el.html

This package provides variables which persist across sessions.

The main entry point is persist-defvar which behaves like defvar but which persists the variables between session. Variables are automatically saved when Emacs exits.

Other useful functions are persist-save which saves the variable immediately, persist-load which loads the saved value, persist-reset which resets to the default value.

Values are stored in a directory in user-emacs-directory, using one file per value. This makes it easy to delete or remove unused variables.

Defined variables (3)

persist--directory-locationThe location of persist directory.
persist--symbolsList of symbols to persist.
persist-load-hookSpecial hook run on loading a variable.

Defined functions (12)

persist--defvar-1(SYMBOL LOCATION INITVALUE)
persist--file-location(SYMBOL)
persist-copy(OBJ)
persist-default(SYMBOL)
persist-defvar(SYMBOL INITVALUE DOCSTRING &optional LOCATION)
persist-equal(A B)
persist-load(SYMBOL)
persist-location(SYMBOL DIRECTORY)
persist-reset(SYMBOL)
persist-save(SYMBOL)
persist-symbol(SYMBOL INITVALUE)
persist-unpersist(SYMBOL)

Defined faces (0)