git clone 'git://github.com/maio/recompile-on-save.el.git'
Author: Marian Schubert <email@example.com>
This package provides a way to automatically trigger recompilation when associated source buffer changes.
The easiest and preferred way to install recompile-on-save is to use the package available on MELPA.
Save recompile-on-save.el to a directory on your load-path (e.g.,
~/.emacs.d/elisp), then add the following to your .emacs file:
You should have at least one source buffer and one compilation
buffer. When you run
M-x recompile-on-save in the source buffer it
will ask you for a compilation buffer which you want to associate
with it. After that, each save of the source buffer will trigger
recompilation in the associated compilation buffer.
To make this process even easier you might
defadvice any compilation
This way source ↔ compilation buffer association will happen
automatically when you run
To (temporarily) disable automatic recompilation turn off
To reset compilation buffers associations for current source buffer