Edit: oh, I see... compilation mode. I've now set C-c c and C-c r to 'compile and 'recompile respectively. thanks!
M-x eval-expression RET (add-hook 'after-save-hook 'recompile)