Variable: midnight-mode
midnight-mode is a customizable variable defined in midnight.el.gz.
Value
nil
Documentation
Non-nil if Midnight mode is enabled.
See the midnight-mode(var)/midnight-mode(fun) command
for a description of this minor mode.
Setting this variable directly does not take effect;
either customize it (see the info node (emacs)Easy Customization)
or call the function midnight-mode(var)/midnight-mode(fun).
Probably introduced at or before Emacs version 20.3.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/midnight.el.gz
;;;###autoload
(define-minor-mode midnight-mode
"Non-nil means run `midnight-hook' at midnight."
:global t
:initialize #'custom-initialize-default
;; Call `midnight-delay-set' again because it takes care of starting
;; the timer if the mode is on. The ':initialize' function above
;; (which ends up calling `midnight-delay-set') did not know yet if
;; the mode was on or not.
(defvar midnight-delay)
(midnight-delay-set 'midnight-delay midnight-delay))