Key combination in Emacs

Source: Internet
Author: User
Tags isearch

Recently I found that the notebook fan is getting louder and louder. The reason is that Visual Studio occupies a lot of resources, and it is very happy to contact and type on quickqwerty during this time, so try Emacs.

 

# Emacs

# Emacs keys
C-<CHR >== Ctrl + character, and press.
M-<CHR >== meta + characters, and press.

 

# Exit

Exit: C-X c-c

 

# Common text operations

Key Binding operation (command)
C-g (ESC) keyboard-quit is used to exit the started command
Backspace backward-delete-Char
Delete (c-d) Delete-Char
C-x u (c-_) advertised-Undo
M-d kill-word
M-delete backward-kill-word
M-K kill-sentence
C-x Delete backward-kill-sentence
C-k kill-line
C-y Yank is equivalent to Pasting
M-y traverses the shear ring, which must be consistent with C-y
C-u, c-u n universal-argument, prefix the number of times before the command

# Move the cursor

Key Binding operation (command)
C-F forward-Char
C-B backward-Char
C-N next-line
C-P previous-line

M-F forward-word
M-B backward-word

C-a beginning-of-line
C-e end-of-line

M-a backward-sentence
M-e forward-sentence

C-V scroll-up
M-V scroll-down

C-l re-center

M-<buffer beginning
M-> buffer end

 

# Search and replacement

Key Binding operation (command)
C-s Isearch-forward
C-r Isearch-backward
<Find> Search-forward
Esc c-s Isearch-forward-Regexp
ESC c-r Isearch-backward-Regexp
N/A replace-string
M-% query-replace
 

# Files, buffers, and Windows

Key Binding operation (command)
C-x C-F find-File
C-x C-s save-Buffer
C-x C-W write-File
C-x 2 split-window-vertically
C-x 3 Split-window-horizontally
C-x O other-Window
C-x 1 Delete-other-Windows
C-x C-B list-Buffers
C-x B switch-to-Buffer
C-x K kill-Buffer

 

# References

[Living in Emacs] (http://www.ibm.com/developerworks/cn/education/linux/l-emacs/index.html)

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.