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 ).