Prompt to restart after doom//upgrade

This commit is contained in:
Henrik Lissner 2019-03-22 14:13:35 -04:00
parent d7e9b47266
commit 9befc015bb
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -45,7 +45,9 @@
(defun doom//upgrade (&optional yes)
"TODO"
(interactive "P")
(doom--run "upgrade" yes))
(doom--run "upgrade" yes)
(when (y-or-n-p "You must restart Emacs for the upgrade to take effect. Restart?")
(doom/restart-and-restore)))
;;;###autoload
(defun doom//install (&optional yes)