emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 30ca49c8f6: Use '^' key for detach command bindings


From: Sean Whitton
Subject: master 30ca49c8f6: Use '^' key for detach command bindings
Date: Wed, 14 Sep 2022 19:06:12 -0400 (EDT)

branch: master
commit 30ca49c8f64b73f991d94b10afcfc0e2d592fe6a
Author: Sean Whitton <spwhitton@spwhitton.name>
Commit: Sean Whitton <spwhitton@spwhitton.name>

    Use '^' key for detach command bindings
    
    * 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 | 1 +
 lisp/window.el  | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/lisp/tab-bar.el b/lisp/tab-bar.el
index cf5ae09a24..abefd996a8 100644
--- a/lisp/tab-bar.el
+++ b/lisp/tab-bar.el
@@ -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)
diff --git a/lisp/window.el b/lisp/window.el
index d5f42dd10b..905803b19e 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]