Variable: confirm-kill-emacs

confirm-kill-emacs is a customizable variable defined in files.el.gz.

Value

nil

Documentation

How to ask for confirmation when leaving Emacs.

If nil, the default, don't ask at all. If the value is non-nil, it should be a predicate function; for example yes-or-no-p.

This variable was added, or its default value changed, in Emacs 21.1.

Probably introduced at or before Emacs version 21.1.

Source Code

;; Defined in /usr/src/emacs/lisp/files.el.gz
(defcustom confirm-kill-emacs nil
  "How to ask for confirmation when leaving Emacs.
If nil, the default, don't ask at all.  If the value is non-nil, it should
be a predicate function; for example `yes-or-no-p'."
  :type '(choice (const :tag "Ask with yes-or-no-p" yes-or-no-p)
		 (const :tag "Ask with y-or-n-p" y-or-n-p)
		 (const :tag "Don't confirm" nil)
		 (function :tag "Predicate function"))
  :group 'convenience
  :version "21.1")