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-interval | The interval between autosaves of minibuffer history. |
savehist-coding-system | The coding system Savehist uses for saving the minibuffer history. |
savehist-file | File name where minibuffer history is saved to and loaded from. |
savehist-file-modes | Default permissions of the history file. |
savehist-ignored-variables | List of additional variables not to save. |
savehist-loaded | Whether the history has already been loaded. |
savehist-minibuffer-history-variables | List of minibuffer histories. |
savehist-mode | Non-nil if Savehist mode is enabled. |
savehist-mode-hook | Hook called when Savehist mode is turned on. |
savehist-save-hook | Hook called by ‘savehist-save’ before saving the variables. |
savehist-save-minibuffer-history | If 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 | () |