fix emacs mode