forked from sebastiw/distel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL
57 lines (43 loc) · 2.12 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
Installation
------------
* distel is an extension to erlang-mode, so erlang-mode must be
present. erlang-node is distributed with OTP, here;
$OTP_PATH/lib/tools-*/emacs/erlang.el
So you must have something like this in you .emacs;
(add-to-list
'load-path
(car (file-expand-wildcards "/usr/lib/erlang/lib/tools-*/emacs")))
* Compile Distel's Erlang modules with 'make'.
* Optionally, install like this;
export prefix=<some fine place> ; make -e install
the elisp file will wind up in $prefix/share/distel/elisp
$prefix defaults to /usr/local, which is cool if you're on e.g. debian.
* Add these lines to your ~/.emacs (again substitute correct path):
(add-to-list 'load-path "/home/me/jungerl/lib/distel/elisp")
(require 'distel)
(distel-setup)
You can also build the documentation in doc/ with 'make postscript'
for a printable manual and 'make install' to install the info manual.
You should now be in the air! If so you should see "Erlang EXT" in the
Emacs modeline when you open an Erlang source file (meaning you're in
the EXTended erlang mode). Check out the manual in doc/ to find out
what you can do!
============================================================
Xemacs compatibility note;
distel seems to work fine in Xemacs.
You will need to install ewoc.el from FSF emacs, e.g. from here;
http://cvs.savannah.gnu.org/viewvc/*checkout*/emacs/emacs/lisp/emacs-lisp/ewoc.el
============================================================
Special notes for Mac OSX:
David Wallin reports the following procedure to setup Distel to work
on an OSX machine with no network connection:
1. Start NetInfo Manager.app (in /Applications/Utilities)
2. From NetInfo Manager, select the directory path
"/machines/localhost" and mark property "name" and (and anytime
before here: click on the lock and enter the password) choose
"Append Value" from the "Directory" menu.
3. Enter your machine name as the appended value and Save.
This procedure is like putting "127.0.0.1 <hostname>" into /etc/hosts
on a UNIX machine. It's necessary so that Emacs can open sockets to
the localhost via the hostname part of a nodename without talking to
DNS.