Emacs Learning Notes

Source: Internet
Author: User

The first time I saw Emacs was in my senior three, I was just a little interested in programming at that time, and the programmers who felt great were not bothered with an integrated IDE like VS or Eclipse, or made it with GCC after notepad++. Either in the Linux system (it is not very good, I went to high school in the small town, the computer is very few, not to mention that the linux,99.99% people will only work under Windows, and no internet) with vim and Emacs.

As a beginner, I may not even be a rookie, write some study notes about Emacs here.

(first edited on November 29, 2016 23:30)

1, how to install.

The answer is no need to install, the first step is to download the compressed package from http://ftp.gnu.org/gnu/emacs/windows/here.

Note: I use Emacs in Win7 32-bit environment, this FTP provides the compression package has several formats, similar to the emacs-n-x86_64- W64-mingw32.zip is used for 64-bit systems, similar to Emacs-n-i686-w64-mingw32.zip for 32-bit, do not be mistaken.

The second step is decompression, will get a folder, there are bin/libexec/share/var several sub-folders, it is recommended that the folder is named Emacs (all lowercase), so that the command line should be useful.

The third step is to put this folder in the place where you normally install the software, such as: C:/Program files

The fourth step is to add the Emacs/bin path in the path in the Windows Control Panel-system-Advanced system settings-environment variable, for example I added; C:\Program Files\emacs\bin

Note: In front of a semicolon, and do not enter this semicolon in the Chinese input method, as for why, this is to install the Java environment is to add environment variables is a reason (specifically to let Windows know that there is such a folder to call you), the Java people will definitely not have to say.

The fifth step is to run in CMD. Of course, you can also run Emacs\bin\addpm.exe, which automatically generates the configuration file and adds an application shortcut to the boot menu. However, in my computer, this addpm.exe is not so automatic, path or to manually add, but this is installed.

If you enter Emacs in cmd you will get a GUI window

Like this:

If you enter EMACS-NW, this will appear:

Individual or like the command line mode a little more, yes, you can also add a shortcut, which is written on the Emacs installation path \bin\runemacs.exe, recommended in the following add--debug-int, you can debug the configuration file. If you write Emacs directly in the shortcut, you can get rid of the GUI window and start a CMD window (not necessary).

2. For the first time use. Recommended to take a look at the tutorial, is that Emacs Tutorial, rest assured that he is Chinese.

All C-means CTRL plus what key, usually M is alt plus what key, this is different from the habit of windows, to pay attention to.

Common commands

C-v Next Screen

C-f Next Line

If you change C to M, it becomes a function with a sentence.

M-f Next sentence

m-< (in fact, alt+shift+<) moves to the beginning of the full text

M-> (in fact, alt+shift+>) moves to the end of the full text

Emacs Learning Notes

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.