Perfect multi-window operations in Emacs

Source: Internet
Author: User

Table of Contents
1. typical Workflow
2 will automatically number the child window, and then press M-0... 9 jump (favorite)
3 window operations before undo/redo (favorites)
4. Move focus to the next window (frequently used)
5 horizontal/Vertical Split current window (commonly used)
6. Maximize the current subwindow (commonly used)
7. Delete the current subwindow (occasionally)
8. Move the focus to the upper, lower, and left windows (not required)
9 storage/loading window layout to register (not required)

1. typical Workflow
Compare file content in two subwindows
Open more windows to refer to other information.
If you are interested in the content of a window, jump to the window to maximize the window
After reading the maximized window content, the undo maximized operation returns to the previous small window mode to continue to view the global
2 will automatically number the child window, and then press M-0... 9 jump (favorite)
Install the window-numbering.el, and then add the following code in. emacs,

(Require 'window-numbering)
(Window-numbering-mode 1)
3 window operations before undo/redo (favorites)
Install Winner Mode and add the following code in. emacs,

(Winner-mode 1)
(Global-set-key (kbd "C-x 4 u") 'winner-undo)
(Global-set-key (kbd "C-x 4 r") 'winner-redo)
4. Move focus to the next window (frequently used)
M-x other-window. The shortcut key is 'c-x o '.

5 horizontal/Vertical Split current window (commonly used)
Shortcut Key C-x 2/3

6. Maximize the current subwindow (commonly used)
M-x delete-other-windows, shortcut key 'C-x 1 '.

7. Delete the current subwindow (occasionally)
M-x delete-window, shortcut key 'C-x 0 '.

8. Move the focus to the upper, lower, and left windows (not required)
Because I prefer the vi shortcut key, I installed the edevil Mode. The shortcut key is the same as the Vi. C-w h/j/k/l move to the subwindow in all directions.

9 storage/loading window layout to register (not required)
'C-x r w <register> 'storage, 'c-x r j <register>' loading.

Recommended reading:

Configure the newLISP development environment for Emacs

Teach you how to configure Emacs topics

Learn how to customize Emacs

In the GNU Emacs environment, how does one compile and run C/C ++ programs?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.