mirror of
https://github.com/correl/dotfiles.git
synced 2024-11-16 19:19:28 +00:00
18 lines
627 B
EmacsLisp
18 lines
627 B
EmacsLisp
;; Erlang configuration
|
|
(add-to-list
|
|
'load-path
|
|
(car (file-expand-wildcards "/usr/lib/erlang/lib/tools-*/emacs")))
|
|
(setq erlang-root-dir "/usr/lib/erlang")
|
|
(setq exec-path (cons "/usr/lib/erlang/bin" exec-path))
|
|
(require 'erlang-start)
|
|
(add-hook 'erlang-mode-hook
|
|
(lambda ()
|
|
;; when starting an Erlang shell in Emacs, the node name
|
|
;; by default should be "emacs"
|
|
(setq inferior-erlang-machine-options '("-sname" "emacs"))))
|
|
|
|
;; Lisp-Flavored Erlang
|
|
(add-to-list
|
|
'load-path
|
|
(car (file-expand-wildcards "/usr/lib/erlang/lib/lfe-*/emacs")))
|
|
(require 'lfe-start 'nil 'noerror)
|