emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] feature/tabs 47da92b 2/4: Add more aliases switch-to-tab,


From: Juri Linkov
Subject: [Emacs-diffs] feature/tabs 47da92b 2/4: Add more aliases switch-to-tab, previous-tab, next-tab
Date: Sun, 1 Sep 2019 16:15:34 -0400 (EDT)

branch: feature/tabs
commit 47da92bdc01a0cb3b34987ecc938b960c4db75c1
Author: Juri Linkov <address@hidden>
Commit: Juri Linkov <address@hidden>

    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 28a844c..37382e8 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 0532ac6..1819d44 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]