I had checked the doc of erlang-mode.
it's seem that Cc Ck, (erlang-compile) - Compiles the Erlang module in the current buffer.
just compile one file of current buffer. I wanna compile a project with rebar commond on emacs. eg. ./rebar compile
and it can display result like execute "erl -sname -pa ebin -pa deps/*/ebin".
how to do this on emacs?
Doing this the "right" way involves inferior emacs shells and such, and isn't trivial. But you can mostly get the desired effect with these two steps:
rebar.config
file, execute Mx compile
and after hitting enter, change the compile command to rebar get-deps compile
, then hit enter to run it. Assuming the compilation in the first step succeeds, execute Cu Mx erlang-shell
and hit enter. It will prompt you for the shell arguments, which should be
erl -pa deps/*/ebin -pa ebin
Hit enter and you'll get an erlang shell prompt, with its erlang load path properly set up for your project.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.