spacemacs/init-package/init-erlang.el

19 lines
712 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))
2013-07-24 17:36:51 +00:00
(add-to-list 'auto-mode-alist '("\\.spec?$" . erlang-mode))
2013-11-15 17:02:13 +00:00
(setq erlang-root-dir "/usr/lib/erlang/erts-5.10.3")
(add-to-list 'exec-path "/usr/lib/erlang/erts-5.10.3/bin")
(setq erlang-man-root-dir "/usr/lib/erlang/erts-5.10.3/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
;; not needed using EDTS
;; (require 'erlang-flymake)
;; (erlang-flymake-only-on-save)