From 47da92bdc01a0cb3b34987ecc938b960c4db75c1 Mon Sep 17 00:00:00 2001 From: Juri Linkov Date: Sun, 1 Sep 2019 22:30:45 +0300 Subject: [PATCH] Add more aliases switch-to-tab, previous-tab, next-tab --- etc/NEWS | 5 ++++- lisp/tab-bar.el | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) 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. -- 2.39.2