Variable: org-clock-ask-before-exiting
org-clock-ask-before-exiting is a customizable variable defined in
org-clock.el.gz.
Value
t
Documentation
If non-nil, ask if the user wants to clock out before exiting Emacs.
This variable only has effect if set with M-x customize (customize).
This variable was added, or its default value changed, in Org version
9.5.
Source Code
;; Defined in /usr/src/emacs/lisp/org/org-clock.el.gz
(defcustom org-clock-ask-before-exiting t
"If non-nil, ask if the user wants to clock out before exiting Emacs.
This variable only has effect if set with \\[customize]."
:set (lambda (symbol value)
(if value
(add-hook 'kill-emacs-query-functions #'org-clock-kill-emacs-query)
(remove-hook 'kill-emacs-query-functions #'org-clock-kill-emacs-query))
(set-default-toplevel-value symbol value))
:type 'boolean
:package-version '(Org . "9.5"))