From 0b3542bc1518d43b45165bd66c1fda03eeff8bcb Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Fri, 20 Nov 2026 16:20:30 -0600 Subject: feat(keys): move the terminal to C-; t and the test runner to C-; T I'm in the terminal far more than I run tests, so it gets the easier key. - The terminal commands move from C-; x to C-; t. - The test runner moves from C-; t to C-; T. - C-; x is now unbound. - The terminal prefix gains a which-key label. --- modules/eat-config.el | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'modules/eat-config.el') diff --git a/modules/eat-config.el b/modules/eat-config.el index f764848e..72f27bda 100644 --- a/modules/eat-config.el +++ b/modules/eat-config.el @@ -414,9 +414,9 @@ terminal. ai-term's agent buffers are managed separately via M-SPC." ;; ------------------- terminal copy mode + tmux history ----------------------- ;; Carried over from the ghostel era for the EAT agent terminals (ai-term). ;; Agents run EAT over tmux, so copy-mode is tmux's own copy-mode -- the same UX -;; ghostel-over-tmux had. C- enters it and scrolls up in one stroke; C-; x c -;; enters it via the menu, C-; x h grabs the whole pane history into a buffer, -;; and C-; x d detaches the tmux client without going through its prefix. +;; ghostel-over-tmux had. C- enters it and scrolls up in one stroke; C-; t c +;; enters it via the menu, C-; t h grabs the whole pane history into a buffer, +;; and C-; t d detaches the tmux client without going through its prefix. (declare-function cj/register-prefix-map "keybindings") (declare-function eat-emacs-mode "eat") @@ -628,13 +628,13 @@ pty; without tmux, moves point up in EAT's emacs-mode buffer." (cj/term-copy-mode-dwim)) (forward-line -1))))) -;; The C-; x terminal prefix (copy-mode, tmux detach, tmux history, the F12 +;; The C-; t terminal prefix (copy-mode, tmux detach, tmux history, the F12 ;; toggle). C- ;; enters copy-mode + scrolls in one stroke; bound in EAT's semi-char map so it ;; reaches Emacs from inside an agent terminal. (defvar-keymap cj/term-map :doc "Personal terminal command map.") -(cj/register-prefix-map "x" cj/term-map) +(cj/register-prefix-map "t" cj/term-map "terminal menu") (keymap-set cj/term-map "c" #'cj/term-copy-mode-dwim) (keymap-set cj/term-map "d" #'cj/term-tmux-detach) (keymap-set cj/term-map "h" #'cj/term-tmux-history) -- cgit v1.2.3