What is the best way to get rid of the standard Arduino IDE ?

I'm an emacs/makefile sort of guy

is there a current makefile/cli oriented development environment for Arduino?