Saving Window Configurations in Emacs

孤人 提交于 2019-12-17 15:42:25

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!