Variable: midnight-mode-hook
midnight-mode-hook is a customizable variable defined in
midnight.el.gz.
Value
nil
Documentation
Hook run after entering or leaving midnight-mode(var)/midnight-mode(fun).
No problems result if this variable is not bound.
add-hook automatically binds it. (This is true for all hook variables.)
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
;; Disable first, since the ':initialize' function above already
;; starts the timer when the mode is turned on for the first time,
;; via setting 'midnight-delay', which calls 'midnight-delay-set',
;; which starts the timer.
(when (timerp midnight-timer) (cancel-timer midnight-timer))
(if midnight-mode (timer-activate midnight-timer)))