Emacs mode

Dominic Williams erlang-list@REDACTED
Fri Mar 11 22:04:24 CET 2005


Vlad Dumitrescu wrote:

>> I'm using this in .emacs:
>>   (setq load-path (cons "/usr/local/lib/erlang/lib/tools-2.4/emacs" 
>> load-path))

then:

> What I meant was that for example after installing R10B-3, the above 
> won't work, because the path should be .../tools-2.4.1/...

This works for me:

(set 'erlang-home "/opt/local/lib/erlang/")
(set 'erlang-lib (concat erlang-home "lib/"))
(set 'erlang-bin (concat erlang-home "bin/"))
(set 'erlang-emacs-dir
      (concat
       erlang-lib
       (file-name-completion "tools-" erlang-lib)
       "emacs"))
(set 'load-path (cons erlang-emacs-dir load-path))
(set 'exec-path (cons erlang-bin exec-path))
(require 'erlang-start)

Regards,

Dominic Williams
http://www.dominicwilliams.net
----




More information about the erlang-questions mailing list