Variable: tab-line-mode-hook
tab-line-mode-hook is a customizable variable defined in
tab-line.el.gz.
Value
(tab-line-mode-set-explicitly(var)/tab-line-mode-set-explicitly(fun))
Documentation
Hook run after entering or leaving tab-line-mode(var)/tab-line-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/tab-line.el.gz
;;;###autoload
(define-minor-mode tab-line-mode
"Toggle display of tab line in the windows displaying the current buffer.
When this mode is enabled, each window displays a tab line on its
top screen line. The tab line is a row of tabs -- buttons which
you can click to have the window display the buffer whose name is
shown on the button. Clicking on the \"x\" icon of the button
removes the button (but does not kill the corresponding buffer).
In addition, the tab line shows a \"+\" button which adds a new
button, so you could have one more buffer shown on the tab line."
:lighter nil
(let ((default-value '(:eval (tab-line-format))))
;; Preserve the existing tab-line set outside of this mode
(if (or (null tab-line-format)
(equal tab-line-format default-value))
(if tab-line-mode
(setq tab-line-format default-value)
(setq tab-line-format nil))
(message "tab-line-format set outside of tab-line-mode, currently `%S'"
tab-line-format))))