Don't y/n on quit if there are no buffers open

This commit is contained in:
Henrik Lissner 2015-12-13 06:28:38 -05:00
parent 1bebba9853
commit 8c2bf7c691

View file

@ -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