Erlang Development Environment Settings (Emacs)

Source: Internet
Author: User

This article describes how to set the Erlang environment of Emacs and how to use common shortcut keys.

 

1. Download and install Emacs

The http://ftp.gnu.org/gnu/windows/emacs/ has an EXE file download at the bottom of the page.

2. Configure the Erlang plug-in

If Erlang has been installed$ (Erl_home) \ Lib \ tools-2.6.6.6 \ EmacsEmacs plug-in. (It is said that Emacs is the official ide of Erlang and contains the Emacs plug-in the release of Erlang, which seems to prove this .)

The configuration is as follows:

Edit c: \. emacs (create a new one if no one exists) and add the following content to the file:

(Setq load-path (Cons "D:/program files (x86)/erl5.9/lib/tools-2.6.6.6/Emacs"
Load-path ))
(Setq Erlang-root-Dir "D:/program files (x86)/erl5.9 ")
(Setq Exec-path (Cons "D:/program files (x86)/erl5.9/bin" Exec-path ))
(Require 'erlang-start)
(Put 'narrow-to-region' disabled nil)

Note that the plug-in directory in the above Code should be modified to the same directory as the installation directory of your own machine.

3. After completing the preceding steps, open Emacs: run $ (emacs_home) \ bin \ runemacs.exe

Environment setting is complete! The use of this environment requires the basic Emacs operations. After you enter Emacs, a basic tutorial (Tutorial) will be displayed on the homepage ), read it (if you have never touched Emacs ).

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.