Function: evil-change-to-initial-state
evil-change-to-initial-state is an interactive and byte-compiled
function defined in evil-core.el.
Signature
(evil-change-to-initial-state &optional BUFFER MESSAGE)
Documentation
Change the state of BUFFER to its initial state.
This is the state the buffer came up in. If Evil is not activated then this function does nothing.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-core.el
(evil-define-command evil-change-to-initial-state
(&optional buffer message)
"Change the state of BUFFER to its initial state.
This is the state the buffer came up in. If Evil is not activated
then this function does nothing."
:keep-visual t
:suppress-operator t
(when evil-local-mode
(with-current-buffer (or buffer (current-buffer))
(evil-change-state (evil-initial-state-for-buffer buffer)
message))))