]> git.eshelyaron.com Git - emacs.git/commitdiff
Use '^' key for detach command bindings
authorSean Whitton <spwhitton@spwhitton.name>
Wed, 14 Sep 2022 16:49:27 +0000 (09:49 -0700)
committerSean Whitton <spwhitton@spwhitton.name>
Wed, 14 Sep 2022 23:03:50 +0000 (16:03 -0700)
* lisp/tab-bar.el (tab-prefix-map): Move tear-off-window to C-x w ^ f.
Bind tab-window-detach to C-x w ^ t.
* lisp/window.el (window-prefix-map): Bind tab-detach to C-x t ^ f.

lisp/tab-bar.el
lisp/window.el

index cf5ae09a2479451108e154fc49d80d6de31a18cf..abefd996a8a67f47a854ea2193c6330788a24a7b 100644 (file)
@@ -2411,6 +2411,7 @@ When `switch-to-buffer-obey-display-actions' is non-nil,
 (keymap-set tab-prefix-map "M"   #'tab-move-to)
 (keymap-set tab-prefix-map "G"   #'tab-group)
 (keymap-set tab-prefix-map "r"   #'tab-rename)
+(keymap-set tab-prefix-map "^ f"  #'tab-detach)
 (keymap-set tab-prefix-map "RET" #'tab-switch)
 (keymap-set tab-prefix-map "b"   #'switch-to-buffer-other-tab)
 (keymap-set tab-prefix-map "f"   #'find-file-other-tab)
index d5f42dd10b47c4bda4ae89b250a1aa973df0fe7e..905803b19e6ebfae924e3a214bad4df410bebfec 100644 (file)
@@ -10593,7 +10593,8 @@ displaying that processes's buffer."
   "2" #'split-root-window-below
   "3" #'split-root-window-right
   "s" #'window-toggle-side-windows
-  "f" #'tear-off-window
+  "^ f" #'tear-off-window
+  "^ t" #'tab-window-detach
   "-" #'fit-window-to-buffer
   "0" #'delete-windows-on)
 (define-key ctl-x-map "w" window-prefix-map)