Emacs use step by step

xiaoxiao2021-03-06  102

This article first appeared on 2004-04-07 loveunix technology forums All rights reserved Please indicate the source Author: Carolemacs is a very powerful tool under Linux / Unix. This article mainly introduces some common sense when the text editor is applicable, and provides some information about in-depth learning.

Entry-level EMACS application learning purpose: complete basic functions such as opening, editing, saving, shutting down. 1. About Emacs

It's a much more Than An Editor.emacs is too powerful, but we don't deviate from the foundation here, just use it as a notebook in Windows. 2. Open Emacs

$ EMACS >>>> None parameters Emacs command, Emacs will open a new file $ Emacs Hello.c >>>> If hello.c exists, open the file; if it does not exist, create new Hello.c file.

Note: Open the Emacs on the graphics terminal, there is a row of file menu similar to Windows, click File -> Open File ..., then enter the file name

Inside the shell of the pure or order, the mouse click does not work. At this time, you need to use the keyboard to type command (the commands we talk later are using the keyboard, the mouse click everyone.)

3. Emacs Enter commands through the keyboard

The input of commands, usually requires Ctrl (Control "plus the letter key to complete. There are some Alt (also name META keys) with letters. If you read the Help Guide of Emacs, the representation of the command is usually the case:

CX CC >>>> Press the CTRL button first, press X, release X, press C, release C, loosen Ctrlm- >>>> META-, or Alt-, or ESCC-M- >>>> Control-Alt-

4. Open a file in Emacs

Just now, I opened a file at the same time when I opened Emacs, such as Hello.c.

How do you open another file in Emacs? ("New" "Open" item in NOTEPAD in Windows

C-X C-F FileName >>> Open a filename file

... (enter text) ......

5. Save, exit operation

C-X C-S >>>> Save File C-X C-C >>>> Exit EmacSc-Z or C-X C-Z >>>> Hang Emacs

(

The meaning of hangs is to put the program in the background, the front desk returns to the shell prompt, enter

FG Back to EMACS interface)

6. In the process of entering the text

Several orders that are often used

C-V >>>> Down rolling window M-V >>>> rolling window C-X u >>> Cancel the last operation

Further self-study Emacs If the above basic operation has been successfully used, then a simple text editor, save, there is no problem. But don't you think Emacs is very inconvenient? There are many resources available on the Internet to help further learn Emacs. BTW, I think it is very convenient to learn the use of Emacs in actual needs, not only Emacs learning. When you want to complete a shortcut, if you open two windows (CX 2), there is a command list is very convenient of. Choose your own - Emacs Quick Reference, shortcuts list 1 Page: http://www.csuhayward.edu/ics/walab/u_guides/emacsqck.pdfhtp://www.gia.ist.utl. PT / Cadeiras / TP / AULA ... K-REFERENCE.PDF2 PAGES: http://undergraduate.csse.uwa.edu.au/units.../quickref-2.pdfhttp://www.csuhayward.edu/ ICS / WALAB / U_GUIDES / EMACS.PDF

Find a common preference of the Emacs information you feel better, and make a common list of orders for yourself.

I have some better here.

Here, some Emacs learning materials are recommended according to personal experience, simply in front, complex in the back. * More representative quality

Life in Emacs ****

A Chinese online tutorial, you need to register after learning

Http://www-900.ibm.com/developerWorks/cn/linux/index.shtml

Traditional Emacs use introduction

Http://netLab.cse.yzu.edu.tw/~statue/freeb...aasir/ch063.pdf

WANG Chunyu Personal Home Emacs Top ***

Http://db.cs.hit.edu.cn/people/wangchunyu/interests/emacs

Emacs Tutorial Chinese ***

http://www.gnuctt.net/html/modules.php?nam...article&sid=121

Want to learn more about text editors? VI Pico Emacs

http://ftp.ncnu.edu.tw/documentation/linux...k/chapter13.pdf

GNU Emacs ****

http://www.gnu.org/software/emacs/

Xemacs ****

http://www.xemacs.org/

The command to use every day I hope that your side has already opened an Emacs editor, follow the following commands, you can get more intuitive understanding and understanding. Finding Functions CS Implementing Finding Features in the Find Multiple Files: CX 2 Horizontal Split Main Window CX 3 Vertical Segmentation NOTE: Operating these two commands, you will find that the two windows display the same text, in either window The content modifications to change will change the same content on both windows because they are the same file. >>>> This feature is very easy, especially for a long file to edit, and when you need to find content. Of course, you can also open another file in the new window C-X C-f. C-X o Switch between multiple windows >>> That is, the cage C-X 1 that moves the cursor to the current operation to maximize the window of the cursor >>> equivalent to the original one window.

转载请注明原文地址:https://www.9cbs.com/read-103443.html

New Post(0)