Windows – How to restore Emacs’ windows and buffers from the last session


How to restore Emacs' windows and buffers from the last session?

The behavior I want is like in web browser that you can restore all the tabs from last session.

Best Answer

  • In addition to automatically restoring your last Emacs session state, you can also save any number of session states and restore them on demand in any other session, any number of times. IOW, you can easily switch among different desktops.

    The easiest way to do this is to load library Bookmark+ and use key C-x r K to save the current session state as a desktop bookmark. You can then restore any desktop bookmark in any session using key C-x j K.

  • Related Question