How to load emacs saved desktop configuration?

Viewed 6925

I followed some answers here, customizing a workspace, where I had several windows sized how I wanted them. I saved this session, as per instructions, here. While I see that I now have a .emacs.desktop file in that directory, I can't seem to understand how to load my desktop configuration. When I emacs .emacs.desktop or C-x c-f .emacs.desktop, that only edits the file itself, rather than loading the configuration. How can I start with a restored configuration?

3 Answers

The .emacs.desktop file is ~/.emacs.d directory by default.

You just need to have (desktop-save-mode t) in your init.el, to load the saved emacs configuration from the previous session.

Everytime you make changes to the buffer and save it, all of it is going to reloaded the next time you reopen emacs.

This setting is going to remember things like cursor position, buffers, etc.

Related