Learn emacs (i) [Introduction to some commands and Emacs Lisp,list]

Source: Internet
Author: User
Tags readable
Like Linux, in the heart there is a desire to delve into the impulse of Linux. The idea is to be proficient with Emacs, and then use Emacs to work efficiently, read code, write programs, send and receive emails, and so on, but Emacs is not something that is as easy to use as Windows Word or VC.

I have learned before, but it was always intermittent, and did not always use its courage, but I still filled with this curiosity, there is a desire to overcome it, so every day I will spend one hours to read Emacs in the ready-made documents, all in English, read more slowly ...

-----------
Emacs Terminology
Region selected Area
Kill cut
Yank Paste
frame window
Key-sequence shortcut keys

-----------
Commands that are not commonly used
C-x s saves multiple buffers
M-x Replace string string, first enter the string you want to replace, and then enter a new string return
M-x recover file <return> restores files that have not been saved since the last unexpected exit, which is recorded in a file named "#...#" and automatically deletes files named "#...#" after recovery.

Added on 08.05.13
Envy VC or eclips above the automatic quick annotation function, Emacs also have, select an area (that is, place a tag mark in one position, then c-n or c-p to move the cursor elsewhere), and then
C-c C-c is M-x comment-region
The cancellation is like this:
M-x recomment-region

Added on 08.05.14
Emacs Bookmark-related commands
Ctrl x R m: creating bookmarks
CTRL x R L: Open Bookmark list
CTRL x R B: Jump to the location specified by the bookmark
M-x bookmark-write: Write a bookmark to a specific file
M-x bookmark-load: Loading bookmarks from specified file

-----------
What is lisp and what is List
LISP = List Processing
List looks like this ' (Flower violet Daisy), enclosed in a pair of parentheses
They are separated by spaces, each of which is not separable, can be called "atoms", and the words that are quoted in double quotes are considered to be atoms.
If there is a quotation mark in front of the list, the list is not interpreted by the LISP interpreter
Before the list, if you don't quote, the first atom in the list often has a special meaning, and the Lisp interpreter explains that it performs some action, such as (+ 2 2), which will perform the actions of adding 2 and 2, and the first atom is called a function, and the following atom is the parameter of the function. Number

------------
How to perform the list
The cursor moves to the end of the list, and then enter C-x c-e to execute the list in front of the cursor
Lisp interpreter explains 2 heavy entities, one is readable code, one is unreadable code, readable code is often stored in the. el file, unreadable code stored in the. ELC end of the file total

------------
Message function
(message ' This message'll print at Echol window ')
(Buffer-name)
(message "This message print the buffer name%s" (buffer-name))
(Message "The value of the ' Fill-column is%d" fill-column)

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.