Variable: so-long-minor-mode-hook
so-long-minor-mode-hook is a customizable variable defined in
so-long.el.gz.
Value
nil
Documentation
Hook run after entering or leaving so-long-minor-mode(var)/so-long-minor-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/so-long.el.gz
;;;###autoload
(define-minor-mode so-long-minor-mode
"This is the minor mode equivalent of `so-long-mode'.
Any active minor modes listed in `so-long-minor-modes' are disabled for the
current buffer, and buffer-local values are assigned to variables in accordance
with `so-long-variable-overrides'.
This minor mode is a standard `so-long-action' option."
:lighter nil
(if so-long-minor-mode ;; We are enabling the mode.
(progn
;; Housekeeping. `so-long-minor-mode' might be invoked directly rather
;; than via `so-long', so replicate the necessary behaviors. The minor
;; mode also cares about whether `so-long' was already active, as we do
;; not want to remember values which were (potentially) overridden
;; already.
(unless (or so-long--calling so-long--active)
(so-long--ensure-enabled)
(setq so-long--active t
so-long-detected-p t
so-long-function #'turn-on-so-long-minor-mode
so-long-revert-function #'turn-off-so-long-minor-mode)
(so-long-remember-all :reset)
(unless (derived-mode-p 'so-long-mode)
(setq so-long-mode-line-info (so-long-mode-line-info))))
;; Now perform the overrides.
(so-long-disable-minor-modes)
(so-long-override-variables))
;; We are disabling the mode.
(unless so-long--calling ;; Housekeeping.
(when (eq so-long-function 'turn-on-so-long-minor-mode)
(setq so-long--active nil))
(unless (derived-mode-p 'so-long-mode)
(setq so-long-mode-line-info (so-long-mode-line-info))))
;; Restore the overridden settings.
(so-long-restore-minor-modes)
(so-long-restore-variables)))