1 User configuration notes
2 ========================
4 Below is a quick guide to necessary configurations for getting
5 started with the Erlang mode for Emacs. Please refer to the
6 Users guide and reference manual in the documentation for the
7 Erlang/OTP application tools for more information.
13 To set up the Erlang Emacs mode on UNIX systems, edit/create the file
14 .emacs in the your home directory.
16 Below is a complete example of what should be added to a user's .emacs
17 provided that OTP is installed in the directory /usr/local/otp:
19 (setq load-path (cons "<path-to-mode>/erlware-mode"
21 (setq erlang-root-dir "/usr/local/otp")
22 (setq exec-path (cons "/usr/local/otp/bin" exec-path))
23 (require 'erlang-start)
25 For XEmacs, you use add-to-list to modify the load path:
27 (add-to-list 'load-path "<path-to-mode>/erlware-mode")
29 If your XEmacs system already has the default erlang mode on
30 the search path, you may need to put the erlware path at the
31 front of the search path:
33 (push "<path-to-mode>/erlware-mode" load-path)
39 To set up the Erlang Emacs mode on Windows systems, edit/create the
40 file .emacs, the location of the file depends on the configuration of
41 the system. If the HOME environment variable is set, Emacs will look
42 for the .emacs file in the directory indicated by the HOME
43 variable. If HOME is not set, Emacs will look for the .emacs file in
46 Below is a complete example of what should be added to a user's .emacs
47 provided that OTP is installed in the directory C:\Program
50 (setq load-path (cons "<path-to-mode>/erlware-mode"
52 (setq erlang-root-dir "C:/Program Files/erl<Ver>")
53 (setq exec-path (cons "C:/Program Files/erl<Ver>/bin" exec-path))
54 (require 'erlang-start)
56 For XEmacs, you use add-to-list to modify the load path:
58 (add-to-list 'load-path "<path-to-mode>/erlware-mode")
60 If your XEmacs system already has the default erlang mode on
61 the search path, you may need to put the erlware path at the
62 front of the search path:
64 (push "<path-to-mode>/erlware-mode" load-path)