File: savehist.el.html

Many editors (e.g. Vim) have the feature of saving minibuffer history to an external file after exit. This package provides the same feature in Emacs. When set up, it saves recorded minibuffer histories to a file (~/.emacs.d/history by default). Additional variables may be specified by customizing savehist-additional-variables.

To use savehist, turn on savehist-mode by putting the following in
~/.emacs:

    (savehist-mode 1)

or with customize: M-x customize-option RET savehist-mode RET.

You can also explicitly save history with M-x savehist-save and load it by loading the savehist-file with M-x load-file.

Defined variables (11)

savehist-autosave-intervalThe interval between autosaves of minibuffer history.
savehist-coding-systemThe coding system Savehist uses for saving the minibuffer history.
savehist-fileFile name where minibuffer history is saved to and loaded from.
savehist-file-modesDefault permissions of the history file.
savehist-ignored-variablesList of additional variables not to save.
savehist-loadedWhether the history has already been loaded.
savehist-minibuffer-history-variablesList of minibuffer histories.
savehist-modeNon-nil if Savehist mode is enabled.
savehist-mode-hookHook called when Savehist mode is turned on.
savehist-save-hookHook called by ‘savehist-save’ before saving the variables.
savehist-save-minibuffer-historyIf non-nil, save all recorded minibuffer histories.

Defined functions (7)

savehist-autosave()
savehist-install()
savehist-mode(&optional ARG)
savehist-printable(VALUE)
savehist-save(&optional AUTO-SAVE)
savehist-trim-history(ARGUMENT)
savehist-uninstall()

Defined faces (0)