default to emacs mode in compilation mode
add functions for running pytests