How to keep a constant history?

Im pretty new to Emacs (I have been using emacs now from 1 month) and migrated from vim. One vim “feature” that I really miss in Emacs is the constant story.

When I start vim, I can easily open files that I recently opened using command history. But in Emacs, when im in dired (or executing commands through M-x) and then clicking M-p, I can view the session history and not open the files that I opened in the previous session. So now my question is: Is it possible to save the Emacs-history archive on my system , so that when I re-open Emacs, I can access my entire history? (Btw. My version of Emacs is 24.3.1)

Thanks Niklas

+4
source share
2 answers

You can put (savehist-mode 1)in your own .emacsto save the history of the minibuffer for several sessions. (For this you need to restart)

+3
source

For M-xin particular, see SMex . It improves M-xwith history, matching flexibility, better order, etc.

+1
source

All Articles