Emacs: Save Command History

By Xah Lee. Date: .

save/store minibuffer history

Many emacs commands lets you use key to use last command or parameter. But after you restart emacs, command history is forgotten.

You can make emacs remember command history.

Put this in your Emacs Init File:

;; save minibuffer history
(savehist-mode 1)

Command history is saved as a file, by default at ~/.emacs.d/history

Emacs, Restore Things


Emacs Init

Init Basics

Keys

Font

Text Editing

Completion

File

Restore Things

Backup/AutoSave

Line

Appearance

Misc

Advanced Init Tips

packages