Refactor doom-quit-p
This commit is contained in:
parent
33b0a8d36c
commit
8e092b9884
1 changed files with 3 additions and 5 deletions
|
@ -145,11 +145,9 @@ to a new one."
|
||||||
|
|
||||||
Returns t if it is safe to kill this session. Does not prompt if no real buffers
|
Returns t if it is safe to kill this session. Does not prompt if no real buffers
|
||||||
are open."
|
are open."
|
||||||
"Return t if this session should be killed silently."
|
(or (not (ignore-errors (doom-real-buffer-list)))
|
||||||
(if (ignore-errors (doom-real-buffer-list))
|
(yes-or-no-p (format "››› %s" (or prompt "Quit Emacs?")))
|
||||||
(or (yes-or-no-p (format "››› %s" (or prompt "Quit Emacs?")))
|
(ignore (message "Aborted"))))
|
||||||
(ignore (message "Aborted")))
|
|
||||||
t))
|
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun doom|apply-ansi-color-to-compilation-buffer ()
|
(defun doom|apply-ansi-color-to-compilation-buffer ()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue