[erlang-questions] "Automatic" recompile app from a console
jixiuf
jixiuf@REDACTED
Fri Feb 1 03:09:22 CET 2013
>> This is the part that was failing for me, actually - I get an error about
>> reloading a beam file when I ran the make from within emacs. Works OK from a
>> command line, but not from emacs.
>
> This is what I have in my emacs.d/init.el:
>
> (global-set-key (kbd "C-x RET") 'compile)
>
> So it's CTRL-C M and I get the compile prompt, which defaults to "make
> -k", then enter. Of course I have a Makefile that contains ./rebar
> compile in the default target.
>
> Emacs knows how to go to the source line on error with CTRL `
>
> I personally would not want my compiler to auto-compile when I saved
> the file, though I realize some IDEs not only do that, but try to
> compile as you type! Everyone has a different thing though.
>
I write erlang-dired-mode.el for emacs
https://raw.github.com/jixiuf/erlang-dired-mode/master/erlang-dired-mode.el
there is a function called `erlang-auto-compile' maybe can help you if you
use emacs.
More information about the erlang-questions
mailing list