1

I am new to spacemacs and currently save fils by s-s (aka: cmd-s). I would like to switch to evil-normal-state each time I save. How do I do this?

1 Answer 1

2

I don't use evil. So I can only report what I found through a short internet search.

Several solutions are suggested there: https://www.reddit.com/r/emacs/comments/4emyt2/how_to_properly_configure_keybindings_for_evil/

I just cite two variants here:

The simplest one is using :w instead of S-s for saving the buffer.

The next simple thing is adding the following to your init file:

(add-hook 'after-save-hook #'evil-normal-state)

1
  • Thank you. That saved my problem. It didn't work when i reloaded my dot file with spc-f-e-R but after restarting emacs it worked. It works with S-s as well.
    – villy393
    Dec 2, 2017 at 12:24

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.