Working in Emacs you can compile methods on the fly, but you need to check the command line to ensure that the method did compile correctly. Attached is a module that pops up a dialog when the compilation fails. So you don't need to check the prompt anymore.
Simply load the module and type:
to activate the module.
download the source here.