7

So far, I've tried this, but it doesn't see to be working - new buffers still start in normal mode. I'd prefer to default to evils emacs mode, and be able to switch into evil with C-z when I'm ready

(setq evil-emacs-state-modes (append evil-normal-state-modes evil-motion-state-modes))
(setq evil-normal-state-modes nil)
(setq evil-motion-state-modes nil)
1

1 Answer 1

10

You can set evil-default-state to emacs. The docstring reads:

Documentation:

The default state.

This is the state a mode comes up in when it is not listed in evil-emacs-state-modes, evil-insert-state-modes or evil-motion-state-modes. The value may be one of normal, insert, visual, replace, operator, motion and emacs.

Hence: (setq evil-default-state 'emacs) should do it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.