refactor(doom-quit): distinguish flavor text in quit prompts

Makes it easier to tell apart flavor text from the actual prompt.
This commit is contained in:
Henrik Lissner 2021-08-16 14:53:18 -04:00
parent d88948f764
commit c298dc3ac7
2 changed files with 6 additions and 4 deletions

View file

@ -25,9 +25,11 @@ http://doom.wikia.com/wiki/Quit_messages and elsewhere.")
(defun +doom-quit-fn (&rest _)
(doom-quit-p
(format "%s Quit?"
(nth (random (length +doom-quit-messages))
+doom-quit-messages))))
(format "%s %s"
(propertize (nth (random (length +doom-quit-messages))
+doom-quit-messages)
'face '(italic default))
"Really quit Emacs?")))
;;
(setq confirm-kill-emacs #'+doom-quit-fn)