]> git.eshelyaron.com Git - emacs.git/commitdiff
Add repeat map for tab-bar-history (bug#78804)
authorJames Thomas <jimjoe@gmx.net>
Mon, 16 Jun 2025 05:02:29 +0000 (10:32 +0530)
committerEshel Yaron <me@eshelyaron.com>
Wed, 18 Jun 2025 08:14:25 +0000 (10:14 +0200)
Add repeat map similar to that of winner-mode (to which
tab-bar-history is an alternative).

* lisp/tab-bar.el (tab-bar-history-repeat-map): Make the change.

(cherry picked from commit a4ca0cd7f03c1cf0e7b1f3e0d49c4cf42fcacc90)

lisp/tab-bar.el

index 3050da03479494ce212a6146659c5e779e12b303..d61501d63d5c2c2b64ad11f409a2947b2e2b8354 100644 (file)
@@ -2512,6 +2512,13 @@ This navigates forward in the history of window configurations."
   "C-c <left>"  #'tab-bar-history-back
   "C-c <right>" #'tab-bar-history-forward)
 
+(defvar-keymap tab-bar-history-repeat-map
+  :doc "Keymap to repeat tab-bar-history key sequences.
+Used in `repeat-mode'."
+  :repeat t
+  "<left>"  #'tab-bar-history-back
+  "<right>" #'tab-bar-history-forward)
+
 (define-minor-mode tab-bar-history-mode
   "Toggle tab history mode for the tab bar.
 Tab history mode remembers window configurations used in every tab,