Emacs config utilizing prelude as a base
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
User configuration notes========================
Below is a quick guide to necessary configurations for gettingstarted with the Erlang mode for Emacs. Please refer to theUsers guide and reference manual in the documentation for theErlang/OTP application tools for more information.
For UNIX users--------------
To set up the Erlang Emacs mode on UNIX systems, edit/create the file.emacs in the your home directory. Below is a complete example of what should be added to a user's .emacsprovided that OTP is installed in the directory /usr/local/otp: (setq load-path (cons "/usr/local/otp/lib/tools-<ToolsVer>/emacs" load-path)) (setq erlang-root-dir "/usr/local/otp") (setq exec-path (cons "/usr/local/otp/bin" exec-path)) (require 'erlang-start)
For Windows users----------------- To set up the Erlang Emacs mode on Windows systems, edit/create thefile .emacs, the location of the file depends on the configuration ofthe system. If the HOME environment variable is set, Emacs will lookfor the .emacs file in the directory indicated by the HOMEvariable. If HOME is not set, Emacs will look for the .emacs file inC:\. Below is a complete example of what should be added to a user's .emacsprovided that OTP is installed in the directory C:\ProgramFiles\erl-<Ver>: (setq load-path (cons "C:/Program Files/erl<Ver>/lib/tools-<ToolsVer>/emacs" load-path)) (setq erlang-root-dir "C:/Program Files/erl<Ver>") (setq exec-path (cons "C:/Program Files/erl<Ver>/bin" exec-path)) (require 'erlang-start)
Miscellaneous addons--------------------
In order to check erlang source code on the fly, add the followingline to your .emacs file (after erlang-start, see above). Seeerlang-flymake.el for more information on how to customize the syntaxcheck.
(require 'erlang-flymake)
|