From: Juri Linkov Date: Mon, 27 Dec 2021 18:54:18 +0000 (+0200) Subject: * lisp/tab-bar.el (tab-bar-history-mode-map): New defvar-keymap. X-Git-Tag: emacs-29.0.90~3413 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=65cd66c7d7a2e120d533ef26baf499d6ee4e44f0;p=emacs.git * lisp/tab-bar.el (tab-bar-history-mode-map): New defvar-keymap. --- diff --git a/etc/NEWS b/etc/NEWS index cfea513cca3..feaa7b425de 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -248,6 +248,11 @@ height use 'window-height' in combination with 'body-lines'. --- *** 'C-x t RET' creates a new tab when the provided tab name doesn't exist. +--- +*** New keymap 'tab-bar-history-mode-map'. +By default, it contains 'C-c ' and 'C-c ' to browse +the history of tab window configurations back and forward. + ** Better detection of text suspiciously reordered on display. The function 'bidi-find-overridden-directionality' has been extended to detect reordering effects produced by embeddings and isolates diff --git a/lisp/tab-bar.el b/lisp/tab-bar.el index 07aa0f2d569..7dcd0bdc7bb 100644 --- a/lisp/tab-bar.el +++ b/lisp/tab-bar.el @@ -1884,6 +1884,10 @@ This navigates forward in the history of window configurations." (goto-char wc-point))) (message "No more tab forward history")))) +(defvar-keymap tab-bar-history-mode-map + "C-c " #'tab-bar-history-back + "C-c " #'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,