From: Juri Linkov Date: Sun, 1 Sep 2019 19:30:45 +0000 (+0300) Subject: Add more aliases switch-to-tab, previous-tab, next-tab X-Git-Tag: emacs-27.0.90~1328^2~25 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=47da92bdc01a0cb3b34987ecc938b960c4db75c1;p=emacs.git Add more aliases switch-to-tab, previous-tab, next-tab --- diff --git a/etc/NEWS b/etc/NEWS index 28a844c5478..37382e843bd 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -1896,9 +1896,12 @@ New tab-based keybindings (similar to frame-based): Also it's possible to switch named persistent window configurations without having graphical access to the tab-bar, even on a tty or when 'tab-bar-mode' is disabled, with these commands: +'list-tabs' displays a list of named window configurations for switching; 'make-tab' creates a new window configuration; 'delete-tab' deletes the current window configuration; -'list-tabs' displays a list of named window configurations. +'switch-to-tab' switches to the window configuration by its name; +'previous-tab' switches to the previous window configuration; +'next-tab' switches to the next window configuration. ** 'global-tab-line-mode' enables the tab-line above each window to switch buffers in it to previous/next buffers. Selecting a previous diff --git a/lisp/tab-bar.el b/lisp/tab-bar.el index 0532ac67f08..1819d44ac20 100644 --- a/lisp/tab-bar.el +++ b/lisp/tab-bar.el @@ -377,6 +377,9 @@ specified by `tab-bar-close-tab-select'." (message "Deleted the current tab"))) (defalias 'list-tabs 'tab-bar-list) +(defalias 'switch-to-tab 'tab-bar-select-tab) +(defalias 'previous-tab 'tab-bar-switch-to-prev-tab) +(defalias 'next-tab 'tab-bar-switch-to-next-tab) (defun tab-bar-list () "Display a list of named window configurations.