Directly refer to this post, record a useful shortcut key: http://www.cnblogs.com/robertzml/archive/2010/03/24/1692737.html
Summary:
Keys |
Command |
Role |
C-x 2 |
Split-window-vertically |
Vertical splitter window |
C-x 3 |
Split-window-horizontally |
Horizontal splitter window |
C-x o |
Other-window |
Select the next window |
C-m-v |
Scroll-other-window |
Scroll down a window |
C-x 4 B |
Switch-to-buffer-other-window |
Open buffer in another window |
C-x 4 C-o |
Display-buffer |
Opens the buffer in another window, but does not select |
C-x 4 F |
Find-file-other-window |
Open a file in another window |
C-x 4 D |
Dired-other-window |
Open a folder in another window |
C-x 4 m |
Mail-other-window |
Write a message in another window |
C-x 4 R |
Find-file-read-only-other-window |
Open a file as read-only in another window |
C-x 0 |
Delete-window |
Close the current window |
C-x 1 |
Delete-other-windows |
Close Other windows |
C-x 4 0 |
Kill-buffer-and-window |
Close the current window and buffer |
C-x ^ |
Enlarge-window |
Increase the current window |
C-x { |
Shrink-window-horizontally |
Narrows the current window |
C-x} |
Enlarge-window-horizontally |
Widen the current window |
C-x- |
Shrink-window-if-larger-than-buffer |
Zoom out if the window is larger than the buffer |
C-x + |
Balance-windows |
As high as all windows |
|
Windmove-right |
Switch to the right window (similar to: up, down, left) |
Emacs Learning Notes: multi-window operation