Fix #2982: multiple instances of Emacs on restart
When invoking a restart during a restart (Yo dawg...)
This commit is contained in:
parent
0c3ffbbb25
commit
fd342dfdb0
1 changed files with 8 additions and 5 deletions
|
@ -130,8 +130,11 @@
|
|||
(interactive "P")
|
||||
(setq doom-autosave-session nil)
|
||||
(doom/quicksave-session)
|
||||
(save-some-buffers nil t)
|
||||
(letf! ((#'save-buffers-kill-emacs #'kill-emacs)
|
||||
(confirm-kill-emacs))
|
||||
(restart-emacs
|
||||
(append (if debug (list "--debug-init"))
|
||||
(when (boundp 'chemacs-current-emacs-profile)
|
||||
(list "--with-profile" chemacs-current-emacs-profile))
|
||||
(list "--restore"))))
|
||||
(list "--restore")))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue