aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2019-09-01 22:30:45 +0300
committerJuri Linkov2019-09-01 22:30:45 +0300
commit47da92bdc01a0cb3b34987ecc938b960c4db75c1 (patch)
treeb9d31980c69d01579e5ec8697387371c1c8a522c
parent7edb95454999d28e4f8d1b1cc042e3c98bb0961b (diff)
downloademacs-47da92bdc01a0cb3b34987ecc938b960c4db75c1.tar.gz
emacs-47da92bdc01a0cb3b34987ecc938b960c4db75c1.zip
Add more aliases switch-to-tab, previous-tab, next-tab
-rw-r--r--etc/NEWS5
-rw-r--r--lisp/tab-bar.el3
2 files changed, 7 insertions, 1 deletions
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):
1896Also it's possible to switch named persistent window configurations 1896Also it's possible to switch named persistent window configurations
1897without having graphical access to the tab-bar, even on a tty 1897without having graphical access to the tab-bar, even on a tty
1898or when 'tab-bar-mode' is disabled, with these commands: 1898or when 'tab-bar-mode' is disabled, with these commands:
1899'list-tabs' displays a list of named window configurations for switching;
1899'make-tab' creates a new window configuration; 1900'make-tab' creates a new window configuration;
1900'delete-tab' deletes the current window configuration; 1901'delete-tab' deletes the current window configuration;
1901'list-tabs' displays a list of named window configurations. 1902'switch-to-tab' switches to the window configuration by its name;
1903'previous-tab' switches to the previous window configuration;
1904'next-tab' switches to the next window configuration.
1902 1905
1903** 'global-tab-line-mode' enables the tab-line above each window to 1906** 'global-tab-line-mode' enables the tab-line above each window to
1904switch buffers in it to previous/next buffers. Selecting a previous 1907switch 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'."
377 (message "Deleted the current tab"))) 377 (message "Deleted the current tab")))
378 378
379(defalias 'list-tabs 'tab-bar-list) 379(defalias 'list-tabs 'tab-bar-list)
380(defalias 'switch-to-tab 'tab-bar-select-tab)
381(defalias 'previous-tab 'tab-bar-switch-to-prev-tab)
382(defalias 'next-tab 'tab-bar-switch-to-next-tab)
380 383
381(defun tab-bar-list () 384(defun tab-bar-list ()
382 "Display a list of named window configurations. 385 "Display a list of named window configurations.