change emacs detection