2

When I quit Emacs, nothing is saved, such as my search history, my command history, my replace strings, etc.

I want EVERYTHING saved. How do I do that?

And by everything, I mean at least the following;

  • Cursor, I mean, point :) position in each file Undo history for each file

  • Command history. This is tricky to specify because unlike in the other editor, commands are issued in various ways. C-x, etc. M-x, etc.

  • Search and replace history

It should feel as if I never exited the session.

I do not even know where to look for. Google shows me some scary cryptic functions, etc. And talks about packages, etc.

Is there an easy, newbie friendly way out?

  • 1
    Start with desktop-save-mode. – Dan Nov 16 '17 at 17:55
  • "Everything" covers a lot of ground. Please specify what you really want saved -- you'll probably get more helpful answers that way. – Dan Nov 16 '17 at 17:57
  • @Dan edited the question. It should feel as if I never exited the session – deshmukh Nov 16 '17 at 18:13
  • 1
    I could be wrong, but I doubt there's a single package that is going to get you "everything," which, again, is very broad. You will probably get better answers if you can narrow it down to the things you REALLY want and ask about those, rather than just say "everything." – Dan Nov 16 '17 at 18:16
  • Alternatively, don't quit your session ;0 – Tyler Nov 16 '17 at 19:52
4

It sounds like you should start, as others have said, by getting to know (well) desktop.el. Add to that savehist.el and saveplace.el. Others may have other suggestions.

savehist.el will take care of histories and rings (they are variables), including command histories (command-history, extended-command-history ...).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.