Variable: text-scale-mode-hook
text-scale-mode-hook is a customizable variable defined in
face-remap.el.gz.
Value
nil
Documentation
Hook run after entering or leaving text-scale-mode(var)/text-scale-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/face-remap.el.gz
(define-minor-mode text-scale-mode
"Minor mode for displaying buffer text in a larger/smaller font.
The amount of scaling is determined by the variable
`text-scale-mode-amount': one step scales the global default
face size by the value of the variable `text-scale-mode-step'
\(a negative amount shrinks the text).
The `text-scale-increase', `text-scale-decrease', and
`text-scale-set' functions may be used to interactively modify
the variable `text-scale-mode-amount' (they also enable or
disable `text-scale-mode' as necessary).
If `text-scale-remap-header-line' is non-nil, also change
the font size of the header line."
:lighter (" " text-scale-mode-lighter)
(face-remap--clear-remappings)
(setq text-scale-mode-lighter
(format (if (>= text-scale-mode-amount 0) "+%d" "%d")
text-scale-mode-amount))
(when text-scale-mode
(face-remap--remap-face 'default)
(when text-scale-remap-header-line
(face-remap--remap-face 'header-line)))
(force-window-update (current-buffer)))