]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/tab-bar.el (tab-switch): New defalias to 'tab-bar-switch-to-tab'.
authorJuri Linkov <juri@linkov.net>
Wed, 24 Feb 2021 18:51:04 +0000 (20:51 +0200)
committerJuri Linkov <juri@linkov.net>
Wed, 24 Feb 2021 18:53:25 +0000 (20:53 +0200)
(tab-prefix-map): Bind "O" to 'tab-previous'.

lisp/tab-bar.el

index 0893a98e606181e492dcac9a768edb1f566b82a3..3b1fc89f30dfc69658792a4e914df96c53422597 100644 (file)
@@ -1288,6 +1288,7 @@ and can restore them."
 (defalias 'tab-close-other 'tab-bar-close-other-tabs)
 (defalias 'tab-undo        'tab-bar-undo-close-tab)
 (defalias 'tab-select      'tab-bar-select-tab)
+(defalias 'tab-switch      'tab-bar-switch-to-tab)
 (defalias 'tab-next        'tab-bar-switch-to-next-tab)
 (defalias 'tab-previous    'tab-bar-switch-to-prev-tab)
 (defalias 'tab-last        'tab-bar-switch-to-last-tab)
@@ -1708,10 +1709,11 @@ When `switch-to-buffer-obey-display-actions' is non-nil,
 (define-key tab-prefix-map "1" 'tab-close-other)
 (define-key tab-prefix-map "0" 'tab-close)
 (define-key tab-prefix-map "o" 'tab-next)
+(define-key tab-prefix-map "O" 'tab-previous)
 (define-key tab-prefix-map "m" 'tab-move)
 (define-key tab-prefix-map "M" 'tab-move-to)
 (define-key tab-prefix-map "r" 'tab-rename)
-(define-key tab-prefix-map "\r" 'tab-bar-select-tab-by-name)
+(define-key tab-prefix-map "\r" 'tab-switch)
 (define-key tab-prefix-map "b" 'switch-to-buffer-other-tab)
 (define-key tab-prefix-map "f" 'find-file-other-tab)
 (define-key tab-prefix-map "\C-f" 'find-file-other-tab)