Preserve window layout in Emacs

后端 未结 5 1133
深忆病人
深忆病人 2021-01-30 08:09

I have setup my windows in a certain way. How do I save this setting to be invoked later?

5条回答
  •  遇见更好的自我
    2021-01-30 08:57

    If you want to persist a layout in your hard-drive, desktop-save is the option.

    If you need to store multiple layouts during emacs' process lifetime (e.g. you connect to a long-running emacs daemon using emacsclient), you can use C-x r f to store the frame layout in some register and C-x r j for restore.

    Since I now and then remotely connect to the work station to do sth, disconnect for a while and later reconnect, restoring layout helps me continue stuff seamlessly (note in this case window layouts stored by C-x r w would be gone).

提交回复
热议问题