I have disabled evil-mode in eshell by (evil-set-initial-state 'eshell-mode 'emacs) but when I switch windows(accidentally) using C-w k from eshell, evil-mode gets enabled.

How do I prevent this behavior?

  • I don't really understand the question. I've made the same kind of customization and have yet to run into what you've described. Chances are it's your configuration doing weird things (yes, Spacemacs and Doom count).
    – wasamasa
    Sep 15 '20 at 10:54
  • Sorry for the unclear question. I've made changes to it. Sep 15 '20 at 11:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.