<emacs>--emacs use

Source: Internet
Author: User

The key labeled in the command, the uppercase C for control, the keyboard is usually the CTRL key, and M for Meta, on the keyboard is usually the ALT key, S is the shift, on the keyboard is usually the SHIFT key, that is:

C--->control M--->alt s-->shift

These three keys in Emacs are usually used as the leading key combination, that is, you may need to hold down the key before executing a command, such as the Search command is c-s, to execute this command first to hold the CTRL key, then press the letter S key, and open the file command is C-x c-f, To open the file you have to press the CTRL key, press X and F (of course, you can also press CTRL and then press the X, release, and then press CTRL and then press f), and some command combination keys and non-combination keys are used, such as saving all the files are c-x s, you need to press CTRL not put down when the X, Then let go of all the keys, and then press S, there are two combinations of keys used together, such as the use of regular expressions for incremental search shortcut keys are c-s-%, which requires you to press CTRL and ALT not release, and then press S.

Activate Emacs

In the context of a graphical interface, you only need to enter Emacs in the terminal to press ENTER or find the icon to activate the Emacs program to open it.

Emacs with a character interface in an environment or pseudo-terminal without a graphical interface can enter EMACS-NW, which is to add a-NW parameter.

suspend Emacs --->c-z

Hangs in the graphical interface is usually the use of the Emacs window to minimize the meaning, and in the character interface is to put Emacs into the background after the back to the terminal, for example, under the Gnu/linux character Terminal Press C-z will return to the shell, using the jobs command to list all of your suspended tasks, With FG you can return a task that was suspended for the last time, FG%num can choose to go back to any of the suspended tasks

Exit Emacs ---->c-x c-z

If there is no unsaved file, then this command exits the Emacs program, otherwise it will prompt you to save the file.

Insertkeyboardof the MacroLispfixedrighteousnessto the currentSlowFlushing area M-x Insert-kbd-macro

<emacs>--emacs using

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.