Function: tab-bar-format-global

tab-bar-format-global is a byte-compiled function defined in tab-bar.el.gz.

Signature

(tab-bar-format-global)

Documentation

Produce display of global-mode-string in the tab bar.

When tab-bar-format-global is added to tab-bar-format
(possibly appended after tab-bar-format-align-right),
then modes that display information on the mode line using global-mode-string will display the same text on the tab bar instead.

Probably introduced at or before Emacs version 28.1.

Source Code

;; Defined in /usr/src/emacs/lisp/tab-bar.el.gz
(defun tab-bar-format-global ()
  "Produce display of `global-mode-string' in the tab bar.
When `tab-bar-format-global' is added to `tab-bar-format'
\(possibly appended after `tab-bar-format-align-right'),
then modes that display information on the mode line
using `global-mode-string' will display the same text
on the tab bar instead."
  (mapcar (lambda (string)
            `(global menu-item ,(format-mode-line string) ignore))
          global-mode-string))