Variable: tab-bar-close-tab-select

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

Value

recent

Documentation

Which tab to make current after closing the specified tab.

If left, select the adjacent left tab. If right, select the adjacent right tab. If recent, select the most recently visited tab.

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

View in manual

Source Code

;; Defined in /usr/src/emacs/lisp/tab-bar.el.gz
(defcustom tab-bar-close-tab-select 'recent
  "Which tab to make current after closing the specified tab.
If `left', select the adjacent left tab.
If `right', select the adjacent right tab.
If `recent', select the most recently visited tab."
  :type '(choice (const :tag "Select left tab" left)
                 (const :tag "Select right tab" right)
                 (const :tag "Select recent tab" recent))
  :group 'tab-bar
  :version "27.1")