diff options
| author | Juri Linkov | 2019-09-01 22:30:45 +0300 |
|---|---|---|
| committer | Juri Linkov | 2019-09-01 22:30:45 +0300 |
| commit | 47da92bdc01a0cb3b34987ecc938b960c4db75c1 (patch) | |
| tree | b9d31980c69d01579e5ec8697387371c1c8a522c | |
| parent | 7edb95454999d28e4f8d1b1cc042e3c98bb0961b (diff) | |
| download | emacs-47da92bdc01a0cb3b34987ecc938b960c4db75c1.tar.gz emacs-47da92bdc01a0cb3b34987ecc938b960c4db75c1.zip | |
Add more aliases switch-to-tab, previous-tab, next-tab
| -rw-r--r-- | etc/NEWS | 5 | ||||
| -rw-r--r-- | lisp/tab-bar.el | 3 |
2 files changed, 7 insertions, 1 deletions
| @@ -1896,9 +1896,12 @@ New tab-based keybindings (similar to frame-based): | |||
| 1896 | Also it's possible to switch named persistent window configurations | 1896 | Also it's possible to switch named persistent window configurations |
| 1897 | without having graphical access to the tab-bar, even on a tty | 1897 | without having graphical access to the tab-bar, even on a tty |
| 1898 | or when 'tab-bar-mode' is disabled, with these commands: | 1898 | or 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 |
| 1904 | switch buffers in it to previous/next buffers. Selecting a previous | 1907 | 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'." | |||
| 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. |