Variable: tab-bar-select-tab-modifiers

tab-bar-select-tab-modifiers is a customizable variable defined in tab-bar.el.gz.

Value

nil

Documentation

List of modifier keys for selecting tab-bar tabs by their numbers.

Possible modifier keys are control, meta, shift, hyper, super and alt. Pressing one of the modifiers in the list and a digit selects the tab whose number equals the digit (see tab-bar-select-tab). The digit 9 selects the last (rightmost) tab (see tab-last). The digit 0 selects the most recently visited tab (see tab-recent). For easier selection of tabs by their numbers, consider customizing tab-bar-tab-hints, which will show tab numbers alongside the tab name.

This variable was added, or its default value changed, in Emacs 27.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-select-tab-modifiers '()
  "List of modifier keys for selecting tab-bar tabs by their numbers.
Possible modifier keys are `control', `meta', `shift', `hyper', `super' and
`alt'.  Pressing one of the modifiers in the list and a digit selects the
tab whose number equals the digit (see `tab-bar-select-tab').
The digit 9 selects the last (rightmost) tab (see `tab-last').
The digit 0 selects the most recently visited tab (see `tab-recent').
For easier selection of tabs by their numbers, consider customizing
`tab-bar-tab-hints', which will show tab numbers alongside the tab name."
  :type '(set :tag "Tab selection modifier keys"
              (const control)
              (const meta)
              (const shift)
              (const hyper)
              (const super)
              (const alt))
  :initialize 'custom-initialize-default
  :set (lambda (sym val)
         (set-default sym val)
         ;; Reenable the tab-bar with new keybindings
         (when tab-bar-mode
           (tab-bar--undefine-keys)
           (tab-bar--define-keys)))
  :group 'tab-bar
  :version "27.1")