mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Fix #2982: multiple instances of Emacs on restart
When invoking a restart during a restart (Yo dawg...)
This commit is contained in:
@ -130,8 +130,11 @@
|
|||||||
(interactive "P")
|
(interactive "P")
|
||||||
(setq doom-autosave-session nil)
|
(setq doom-autosave-session nil)
|
||||||
(doom/quicksave-session)
|
(doom/quicksave-session)
|
||||||
(restart-emacs
|
(save-some-buffers nil t)
|
||||||
(append (if debug (list "--debug-init"))
|
(letf! ((#'save-buffers-kill-emacs #'kill-emacs)
|
||||||
(when (boundp 'chemacs-current-emacs-profile)
|
(confirm-kill-emacs))
|
||||||
(list "--with-profile" chemacs-current-emacs-profile))
|
(restart-emacs
|
||||||
(list "--restore"))))
|
(append (if debug (list "--debug-init"))
|
||||||
|
(when (boundp 'chemacs-current-emacs-profile)
|
||||||
|
(list "--with-profile" chemacs-current-emacs-profile))
|
||||||
|
(list "--restore")))))
|
||||||
|
Reference in New Issue
Block a user