在 emacs 中最大化/恢复窗口 [英] Maximizing / restoring a window in emacs
问题描述
好的,所以也许这对超级用户站点来说更像是一个问题,但我认为 stackoverflow 上的 emacs 用户会更多.
Ok, so maybe this is more a question for the superuser site but I figured there'd be a hell of a lot more emacs users on stackoverflow.
基本上我经常将我的 emacs 分成大约 4 个窗口,这样我就可以同时查看一堆缓冲区..但是我希望能够 Cx 1(使窗口与 emacs 大小相同)然后以某种方式恢复到我刚刚看到的漂亮的 4 窗口布局.
Basically I often have my emacs split into about 4 windows so I can look at a bunch of buffers at the same time.. however I'd like to be able to C-x 1 (make the window the same size as emacs) and then somehow restore back to my nice 4 window layout I was just looking at.
有没有简单的方法可以做到这一点,或者我需要一些 elisp/lisp(注意:我不知道任何 elisp.)
Is there an easy way to do this or do I need some elisp / lisp (note: I don't know ANY elisp.)
谢谢!约翰.
推荐答案
尝试 winner-mode.
启用获胜者模式后,您可以使用 C-c
With winner-mode enabled, you can restore your previous window configuration with C-c<left>.
您可以重复键入它以退回窗口配置历史记录,因此即使有多次中间更改,您也很安全.
You can type it repeatedly to step back through the window configuration history, so you're safe even when there have been multiple intervening changes.
C-c
C-c<right> returns you (directly) to the most recent configuration.
这篇关于在 emacs 中最大化/恢复窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!