Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Erlang emacs mode - setting outdir

Tags:

emacs

erlang

Does anyone know how to configure Erlang emacs mode so that compiling a buffer [C-c C-k] writes the beam file to the ebin directory rather than the current directory ?

Thanks!

like image 660
Justin Avatar asked Oct 14 '09 10:10

Justin


1 Answers

You might want to have a look to this thread on the Erlang Questions Mailing List:

http://www.erlang.org/pipermail/erlang-questions/2007-August/028367.html

Moreover, you should be able to compile your file in debug mode: C-u C-c C-k

The erlang-compile command should support prefix arguments. You might want to have a look to:

http://www.gnu.org/software/emacs/manual/html_node/elisp/Prefix-Command-Arguments.html

like image 151
Roberto Aloi Avatar answered Oct 07 '22 23:10

Roberto Aloi