Emacs 杀死其他可见的快捷方式windows

Emacs shortcut to kill other visible windows

在 Emacs 中,我们可以 make 2 or more windows 在缓冲区中。

我只是想知道是否有键盘快捷键可以关闭所有其他 windows 没有当前焦点的内容。即当只有2个windows且焦点在上面那个时,如何快速关闭下面那个?

函数 delete-other-windows 的键盘快捷键 C-x 1window.el 中定义——即 (define-key ctl-x-map "1" 'delete-other-windows)。请参阅手册中有关删除和重新排列的部分 windows:

https://www.gnu.org/software/emacs/manual/html_node/emacs/Change-Window.html