Emacs学习笔记:多窗口操作

直接参考了这个帖子,记录一下有用的快捷键:http://www.cnblogs.com/robertzml/archive/2010/03/24/1692737.html

小结:

按键

命令

作用

C-x 2

split-window-vertically

垂直拆分窗口

C-x 3

split-window-horizontally

水平拆分窗口

C-x o

other-window

选择下一个窗口

C-M-v

scroll-other-window

滚动下一个窗口

C-x 4 b switch-to-buffer-other-window 在另一个窗口打开缓冲
C-x 4 C-o display-buffer 在另一个窗口打开缓冲,但不选中
C-x 4 f find-file-other-window 在另一个窗口打开文件
C-x 4 d dired-other-window 在另一个窗口打开文件夹
C-x 4 m mail-other-window 在另一个窗口写邮件
C-x 4 r find-file-read-only-other-window 在另一个窗口以只读方式打开文件
C-x 0 delete-window 关闭当前窗口
C-x 1 delete-other-windows 关闭其它窗口
C-x 4 0 kill-buffer-and-window 关闭当前窗口和缓冲
C-x ^ enlarge-window 增高当前窗口
C-x { shrink-window-horizontally 将当前窗口变窄
C-x } enlarge-window-horizontally 将当前窗口变宽
C-x - shrink-window-if-larger-than-buffer 如果窗口比缓冲大就缩小
C-x + balance-windows 所有窗口一样高
  windmove-right 切换到右边的窗口(类似:up, down, left)
原文地址:https://www.cnblogs.com/hwy89289709/p/6889631.html