Function: evil-save-modified-and-close
evil-save-modified-and-close is an interactive and byte-compiled
function defined in evil-commands.el.
Signature
(evil-save-modified-and-close FILE &optional BANG)
Documentation
Save the current buffer and close the window.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-commands.el
(evil-define-command evil-save-modified-and-close (file &optional bang)
"Save the current buffer and close the window."
:repeat nil
(interactive "<f><!>")
(when (buffer-modified-p)
(evil-write nil nil nil file bang))
(evil-quit))