Don't y/n on quit if there are no buffers open
This commit is contained in:
parent
1bebba9853
commit
8c2bf7c691
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue