Tweak commands for entering and exiting emacs state