* lisp/savehist.el (savehist-mode): Doc fix. (Bug#32889)
This commit is contained in:
parent
3a2b5a713f
commit
9c028d6965
1 changed files with 22 additions and 5 deletions
|
@ -172,13 +172,30 @@ minibuffer history.")
|
||||||
(define-minor-mode savehist-mode
|
(define-minor-mode savehist-mode
|
||||||
"Toggle saving of minibuffer history (Savehist mode).
|
"Toggle saving of minibuffer history (Savehist mode).
|
||||||
With a prefix argument ARG, enable Savehist mode if ARG is
|
With a prefix argument ARG, enable Savehist mode if ARG is
|
||||||
positive, and disable it otherwise. If called from Lisp, enable
|
positive, and disable it otherwise. If called from Lisp,
|
||||||
the mode if ARG is omitted or nil.
|
also enable the mode if ARG is omitted or nil.
|
||||||
|
|
||||||
When Savehist mode is enabled, minibuffer history is saved
|
When Savehist mode is enabled, minibuffer history is saved
|
||||||
periodically and when exiting Emacs. When Savehist mode is
|
to `savehist-file' periodically and when exiting Emacs. When
|
||||||
enabled for the first time in an Emacs session, it loads the
|
Savehist mode is enabled for the first time in an Emacs session,
|
||||||
previous minibuffer history from `savehist-file'.
|
it loads the previous minibuffer histories from `savehist-file'.
|
||||||
|
The variable `savehist-autosave-interval' controls the
|
||||||
|
periodicity of saving minibuffer histories.
|
||||||
|
|
||||||
|
If `savehist-save-minibuffer-history' is non-nil (the default),
|
||||||
|
all recorded minibuffer histories will be saved. You can arrange
|
||||||
|
for additional history variables to be saved and restored by
|
||||||
|
customizing `savehist-additional-variables', which by default is
|
||||||
|
an empty list. For example, to save the history of commands
|
||||||
|
invoked via \\[execute-extended-command], add `command-history' to the list in
|
||||||
|
`savehist-additional-variables'.
|
||||||
|
|
||||||
|
Alternatively, you could customize `savehist-save-minibuffer-history'
|
||||||
|
to nil, and add to `savehist-additional-variables' only those
|
||||||
|
history variables you want to save.
|
||||||
|
|
||||||
|
To ignore some history variables, add their symbols to the list
|
||||||
|
in `savehist-ignored-variables'.
|
||||||
|
|
||||||
This mode should normally be turned on from your Emacs init file.
|
This mode should normally be turned on from your Emacs init file.
|
||||||
Calling it at any other time replaces your current minibuffer
|
Calling it at any other time replaces your current minibuffer
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue