Variable: window-tool-bar-mode-hook
window-tool-bar-mode-hook is a customizable variable defined in
window-tool-bar.el.gz.
Value
(window-tool-bar-mode-set-explicitly(var)/window-tool-bar-mode-set-explicitly(fun))
Documentation
Hook run after entering or leaving window-tool-bar-mode(var)/window-tool-bar-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/window-tool-bar.el.gz
;;;###autoload
(define-minor-mode window-tool-bar-mode
"Toggle display of the tool bar in the tab line of the current buffer."
:global nil
(let ((should-display (and window-tool-bar-mode
tool-bar-map))
(default-value '(:eval (window-tool-bar-string))))
;; Preserve existing tab-line set outside of this mode
(if (or (null tab-line-format)
(equal tab-line-format default-value))
(if should-display
(setq tab-line-format default-value)
(setq tab-line-format nil))
(message
"tab-line-format set outside of window-tool-bar-mode, currently `%S'"
tab-line-format))))