Variable: tab-bar-auto-width

tab-bar-auto-width is a customizable variable defined in tab-bar.el.gz.

Value

t

Documentation

Automatically resize width of tabs on tab bar to fill available tab-bar space.

When non-nil, the widths of the tabs on the tab bar are automatically resized so that their width is evenly distributed across the tab bar. This keeps the widths of the tabs independent of the length of the buffer names shown on each tab; the tab widths change only when tabs are added or deleted, or when the frame's dimensions change. This also avoids as much as possible wrapping a long tab bar to a second tab-bar line.

The automatic resizing of tabs takes place as long as tabs are no wider than allowed by the value of tab-bar-auto-width-max, and at least as wide as specified by the value of tab-bar-auto-width-min.

When this variable is nil, the width of each tab is determined by the length of the tab's name.

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

Probably introduced at or before Emacs version 29.1.

Source Code

;; Defined in /usr/src/emacs/lisp/tab-bar.el.gz
(defcustom tab-bar-auto-width t
  "Automatically resize width of tabs on tab bar to fill available tab-bar space.
When non-nil, the widths of the tabs on the tab bar are
automatically resized so that their width is evenly distributed
across the tab bar.  This keeps the widths of the tabs
independent of the length of the buffer names shown on each tab;
the tab widths change only when tabs are added or deleted, or
when the frame's dimensions change.  This also avoids as much as
possible wrapping a long tab bar to a second tab-bar line.

The automatic resizing of tabs takes place as long as tabs are no
wider than allowed by the value of `tab-bar-auto-width-max', and
at least as wide as specified by the value of
`tab-bar-auto-width-min'.

When this variable is nil, the width of each tab is determined by the
length of the tab's name."
  :type 'boolean
  :group 'tab-bar
  :version "29.1")