How do use emacs-state in certain modes?