mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Don't y/n on quit if there are no buffers open
This commit is contained in:
@ -15,7 +15,10 @@
|
||||
|
||||
(when window-system
|
||||
(setq confirm-kill-emacs
|
||||
(lambda (_) (y-or-n-p ">> Gee, I dunno Brain... Are you sure?"))))
|
||||
(lambda (_)
|
||||
(if (narf/get-real-buffers)
|
||||
(y-or-n-p ">> Gee, I dunno Brain... Are you sure?")
|
||||
t))))
|
||||
|
||||
(setq-default
|
||||
ad-redefinition-action 'accept ; silence the advised function warnings
|
||||
|
Reference in New Issue
Block a user