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) (defun doom//upgrade (&optional yes)
"TODO" "TODO"
(interactive "P") (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 ;;;###autoload
(defun doom//install (&optional yes) (defun doom//install (&optional yes)