Variable: tab-bar-tab-name-format-function

tab-bar-tab-name-format-function is a customizable variable defined in tab-bar.el.gz.

Value

tab-bar-tab-name-format-default

Documentation

Function to format a tab name.

Function gets two arguments, the tab and its number, and should return the formatted tab name to display in the tab bar.

This variable was added, or its default value changed, in Emacs 28.1.

Probably introduced at or before Emacs version 28.1.

Source Code

;; Defined in /usr/src/emacs/lisp/tab-bar.el.gz
(defcustom tab-bar-tab-name-format-function #'tab-bar-tab-name-format-default
  "Function to format a tab name.
Function gets two arguments, the tab and its number, and should return
the formatted tab name to display in the tab bar."
  :type 'function
  :initialize #'custom-initialize-default
  :set (lambda (sym val)
         (set-default sym val)
         (force-mode-line-update))
  :group 'tab-bar
  :version "28.1")