问题
I'm wondering if there's a way to save window configurations across emacs sessions. I know desktop-save is fantastic for preserving buffers and whatnot and the emacs manual demonstrates storing a window configuration into a register but this doesn't persist across sessions.
Of course this doesn't seem like it would be too hard to implement myself...
回答1:
EmacsWiki is a great resource: EmacsWiki: Session Management
Looks like Windows Mode, or more specifically revive.el, is what you want.
回答2:
A lot has changed since 2008, and desktop-save-mode
now also restores windows accross sessions. Emacs 24.4 and higher.
回答3:
winner-mode is also interesting (->EmacsWiki)
(winner-mode 1) ; add this line to .emacs
Now, you can go back to previous split pane config by Alt+x winner-undo 【Ctrl+c ←】. There's also winner-redo 【Ctrl+c →】.
来源:https://stackoverflow.com/questions/392314/saving-window-configurations-in-emacs