可能是重复问题:
如何更轻松地在Emacs中切换缓冲区?
在使用emacs时,我倾向于保持许多打开的窗口。不幸的是,使用M-x other-window
非常烦人。到目前为止,我已经在我的.emacs文件中设置了键盘快捷方式:(global-set-key (quote [backtab]) (quote other-window))
。这使得事情变得更容易,但我正在寻找相当于next-buffer
和previus-buffer
命令的可以应用于窗口的等效命令。
可能是重复问题:
如何更轻松地在Emacs中切换缓冲区?
在使用emacs时,我倾向于保持许多打开的窗口。不幸的是,使用M-x other-window
非常烦人。到目前为止,我已经在我的.emacs文件中设置了键盘快捷方式:(global-set-key (quote [backtab]) (quote other-window))
。这使得事情变得更容易,但我正在寻找相当于next-buffer
和previus-buffer
命令的可以应用于窗口的等效命令。
(windmove-default-keybindings)
(setq windmove-wrap-around t)
Shift + {左,上,下,右}
箭头在窗口之间进行切换。Shift修饰符是windmove-default-keybindings
的参数,因此您可以选择另一个。 您可能希望激活winner-mode
。这是一种记住您的窗口配置的小模式,您可以使用winner-undo
或winner-redo
转到以前/下一个配置。dotspacemacs/user-init
函数中,放在你的 .spacemacs
文件中。 - Benjamin R