Variable: tab-bar-close-last-tab-choice

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

Value

nil

Documentation

What to do when the last tab is closed.

If nil, do nothing and show a message, like closing the last window or frame. If delete-frame, delete the containing frame, as a web browser would do. If tab-bar-mode-disable, disable tab-bar-mode(var)/tab-bar-mode(fun) so that tabs no longer show in the frame. If the value is a function, call that function with the tab to be closed as an argument.

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

Source Code

;; Defined in /usr/src/emacs/lisp/tab-bar.el.gz
(defcustom tab-bar-close-last-tab-choice nil
  "What to do when the last tab is closed.
If nil, do nothing and show a message, like closing the last window or frame.
If `delete-frame', delete the containing frame, as a web browser would do.
If `tab-bar-mode-disable', disable `tab-bar-mode' so that tabs no longer show
in the frame.
If the value is a function, call that function with the tab to be closed
as an argument."
  :type '(choice (const    :tag "Do nothing and show message" nil)
                 (const    :tag "Close the containing frame" delete-frame)
                 (const    :tag "Disable tab-bar-mode" tab-bar-mode-disable)
                 (function :tag "Function"))
  :group 'tab-bar
  :version "27.1")