From ad36b217b5c8bdb5dfaa311dec47280078b87c86 Mon Sep 17 00:00:00 2001 From: James Cherti <60946298+jamescherti@users.noreply.github.com> Date: Tue, 13 Aug 2024 19:56:47 -0400 Subject: [PATCH] Add: Configure Emacs to ask for confirmation before exiting --- init.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/init.el b/init.el index cd45ce7..1dc5b87 100644 --- a/init.el +++ b/init.el @@ -93,6 +93,10 @@ compilation-scroll-output 'first-error) (setq truncate-string-ellipsis "…") + +;; Configure Emacs to ask for confirmation before exiting +(setq confirm-kill-emacs 'y-or-n-p) + ;;; Files ;; Disable the warning "X and Y are the same file". Ignoring this warning is