Function: tab-bar-switch-to-last-tab

tab-bar-switch-to-last-tab is an interactive and byte-compiled function defined in tab-bar.el.gz.

Signature

(tab-bar-switch-to-last-tab &optional ARG)

Documentation

Switch to the last tab or ARGth tab from the end of the tab bar.

Interactively, ARG is the prefix numeric argument; it defaults to 1, which means the last tab on the tab bar. For example, C-u 2
<MODIFIER>-9 selects the tab before the last tab.

Key Bindings

Aliases

tab-last

Source Code

;; Defined in /usr/src/emacs/lisp/tab-bar.el.gz
(defun tab-bar-switch-to-last-tab (&optional arg)
  "Switch to the last tab or ARGth tab from the end of the tab bar.
Interactively, ARG is the prefix numeric argument; it defaults to 1,
which means the last tab on the tab bar.  For example, `C-u 2
<MODIFIER>-9' selects the tab before the last tab."
  (interactive "p")
  (tab-bar-select-tab (- (length (funcall tab-bar-tabs-function))
                         (1- (abs (or arg 1))))))