aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Whitton2022-09-14 09:49:27 -0700
committerSean Whitton2022-09-14 16:03:50 -0700
commit30ca49c8f64b73f991d94b10afcfc0e2d592fe6a (patch)
treebf3f6a99ffc0c46d4b6984fd09af83b74f9de3c0
parent8c73ed0ec3328d4108e3084fc0dabdae8bb782a7 (diff)
downloademacs-30ca49c8f64b73f991d94b10afcfc0e2d592fe6a.tar.gz
emacs-30ca49c8f64b73f991d94b10afcfc0e2d592fe6a.zip
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.
-rw-r--r--lisp/tab-bar.el1
-rw-r--r--lisp/window.el3
2 files changed, 3 insertions, 1 deletions
diff --git a/lisp/tab-bar.el b/lisp/tab-bar.el
index cf5ae09a247..abefd996a8a 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,
2411(keymap-set tab-prefix-map "M" #'tab-move-to) 2411(keymap-set tab-prefix-map "M" #'tab-move-to)
2412(keymap-set tab-prefix-map "G" #'tab-group) 2412(keymap-set tab-prefix-map "G" #'tab-group)
2413(keymap-set tab-prefix-map "r" #'tab-rename) 2413(keymap-set tab-prefix-map "r" #'tab-rename)
2414(keymap-set tab-prefix-map "^ f" #'tab-detach)
2414(keymap-set tab-prefix-map "RET" #'tab-switch) 2415(keymap-set tab-prefix-map "RET" #'tab-switch)
2415(keymap-set tab-prefix-map "b" #'switch-to-buffer-other-tab) 2416(keymap-set tab-prefix-map "b" #'switch-to-buffer-other-tab)
2416(keymap-set tab-prefix-map "f" #'find-file-other-tab) 2417(keymap-set tab-prefix-map "f" #'find-file-other-tab)
diff --git a/lisp/window.el b/lisp/window.el
index d5f42dd10b4..905803b19e6 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -10593,7 +10593,8 @@ displaying that processes's buffer."
10593 "2" #'split-root-window-below 10593 "2" #'split-root-window-below
10594 "3" #'split-root-window-right 10594 "3" #'split-root-window-right
10595 "s" #'window-toggle-side-windows 10595 "s" #'window-toggle-side-windows
10596 "f" #'tear-off-window 10596 "^ f" #'tear-off-window
10597 "^ t" #'tab-window-detach
10597 "-" #'fit-window-to-buffer 10598 "-" #'fit-window-to-buffer
10598 "0" #'delete-windows-on) 10599 "0" #'delete-windows-on)
10599(define-key ctl-x-map "w" window-prefix-map) 10600(define-key ctl-x-map "w" window-prefix-map)