Function: restart-emacs
restart-emacs is an interactive and byte-compiled function defined in
files.el.gz.
Signature
(restart-emacs)
Documentation
Kill the current Emacs process and start a new one.
This goes through the same shutdown procedure as
save-buffers-kill-emacs, but instead of killing Emacs and
exiting, it re-executes Emacs (using the same command line
arguments as the running Emacs).
Probably introduced at or before Emacs version 29.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/files.el.gz
(defun restart-emacs ()
"Kill the current Emacs process and start a new one.
This goes through the same shutdown procedure as
`save-buffers-kill-emacs', but instead of killing Emacs and
exiting, it re-executes Emacs (using the same command line
arguments as the running Emacs)."
(interactive)
(save-buffers-kill-emacs nil t))