Step-by-Step learning of Emacs

Source: Internet
Author: User

After using it for a period of time, I felt that I was not able to adapt. I decided to adopt a step-by-step strategy. Top, bottom, left, right
/Home/end/Page down/page up can be used for whatever use, that is, the mouse is also on.
After all, it's a good cat to catch a mouse.
To sum up the commands learned at present: (also let's talk about my experience: these commands are easy to remember, but every
Remember to use it)
All commands in Emacs start with c m. C is what we know Ctrl, M is what we know
Alt.
Move the cursor key:
C-B returns a character (B is back)
C-F goes forward to a character (F is forward)
C-a move to the beginning of the row
End of moving c-e to the row
C-n move a row down (N is next)
C-P move a row up (P is previous)

M-B moves a word backward. A Chinese Word is about a punctuation mark, but it is not continuous.
Disconnected. If you do not go further, the step size is larger than that of the C-series.
M-F moves a word forward, which is the opposite of M-B.
M-a move to the previous sentence
M-e move to the next sentence
M-V up a screen, page up Effect
C-v FLIP down a screen, page down effect
C-l scroll the current cursor to the center of the screen

Summary: these commands reflect the idea of Emacs to centralize text editing operations in the main keyboard area,
At present, it is very awkward to use, and it is not scientific yet, because it is a combination of key, it is necessary to press a lot
To realize my thoughts. The keys at hand, such as the top, bottom, left, and right cursors, are always the largest
. After all, these keys are placed on the keyboard after careful design.
Mix first.

In addition, we found good functions:
1. Automatic disk storage
You will certainly say that word also exists, haha. However, it is not easy to install a word, and it must be stored on every machine.
Yes.
2. M-x auto-fill-Mode
This mode can automatically return to the line when you edit the text with 70 characters at most. Let's take a look at this.



3. M-x replace-Regexp use regular expressions to replace text
This command is particularly useful for batch text processing. If it is used for writing database processingProgramYes
It is the best. You can use this expression to match a row:
^ .*

To learn more about regular expressions, go to this URL:

Http://www.microsoft.com/china/msdn/library/webservices/asp.net/regexnet.mspx? MFR = true

Other commands:
C-h t can be viewed in tutorial. It is recommended that you take a look at it to get started in a few hours. View
This is the entry to the official website, which is just half done.
C-h k allows you to enter the command key to find the corresponding help
C-H a is similar to fuzzy search. Function Description
In addition, you can use the tab key to automatically complete the command in the command line window.
Is the same. You can also move the cursor up or down to view historical commands. Haha. (Think of the previous doskey)

In general, it's not easy for Emacs to use it smoothly (maybe it's time to launch lisp that day ).
There are many attractive features, and we will continue to work towards the goal of becoming an expert in editing.

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.