Emacs Init: Save Command History

By Xah Lee. Date: . Last updated: .

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 gone.

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 Opened File, Window