16 lines
636 B
EmacsLisp
16 lines
636 B
EmacsLisp
(add-to-list 'auto-mode-alist '("\\.erl?$" . erlang-mode))
|
|
(add-to-list 'auto-mode-alist '("\\.hrl?$" . erlang-mode))
|
|
(setq erlang-root-dir "/usr/local/lib/erlang/erts-5.9.2")
|
|
(add-to-list 'exec-path "/usr/local/lib/erlang/erts-5.9.2/bin")
|
|
(setq erlang-man-root-dir "/usr/local/lib/erlang/erts-5.9.2/man")
|
|
(setq erlang-compile-extra-opts '(debug_info))
|
|
(require 'erlang-start)
|
|
|
|
(add-hook 'erlang-mode-hook
|
|
(lambda ()
|
|
;; when starting an Erlang shell in Emacs, with a custom node name
|
|
(setq inferior-erlang-machine-options '("-sname" "syl20bnr"))
|
|
))
|
|
|
|
(require 'erlang-flymake)
|
|
(erlang-flymake-only-on-save)
|