spacemacs/init-package/init-erlang.el

17 lines
636 B
EmacsLisp
Raw Normal View History

2012-12-18 05:48:12 +00:00
(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
2013-01-25 04:34:57 +00:00
(setq inferior-erlang-machine-options '("-sname" "syl20bnr"))
))
2012-12-18 05:48:12 +00:00
2013-01-25 03:54:29 +00:00
(require 'erlang-flymake)
(erlang-flymake-only-on-save)