adapt emacs to cmake