aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-05 14:48:43 -0500
committerCraig Jennings <c@cjennings.net>2026-06-05 14:48:43 -0500
commit348c430f3079d78eb6287555247bf6036f0e294c (patch)
tree61072a7f80a56a82100c00c904e8208e316d9f51 /modules
parent7f74fcdc2475d004e49c90ebd7769b0fcf94d21b (diff)
downloaddotemacs-348c430f3079d78eb6287555247bf6036f0e294c.tar.gz
dotemacs-348c430f3079d78eb6287555247bf6036f0e294c.zip
fix(term): forward F10 and C-F10 to Emacs in ghostel buffers
Inside a ghostel terminal or agent buffer, semi-char mode forwarded F10 and C-F10 to the pty, so the music-playlist toggle and the server-shutdown command never ran. Both are global bindings with no ghostel-mode-map entry, so I added them to ghostel-keymap-exceptions and rebuilt the semi-char map. The lookup then falls through to the global map. Same shape as the earlier F9, F12, and window-nav fixes.
Diffstat (limited to 'modules')
-rw-r--r--modules/term-config.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/term-config.el b/modules/term-config.el
index 5753edde0..7cd386dcf 100644
--- a/modules/term-config.el
+++ b/modules/term-config.el
@@ -229,9 +229,12 @@ run its own project-named tmux session instead of a bare, auto-named one.
;; rebuild is what actually lets the key through to `ghostel-mode-map' / the
;; global map. C-; and F12 are the prefix + toggle; the modified arrows are
;; windmove (S-arrows, focus) and buffer-move (C-M-arrows, swap), which the
- ;; ai-term workflow expects to work from inside an agent buffer.
+ ;; ai-term workflow expects to work from inside an agent buffer. F10 and
+ ;; C-F10 are global bindings (music-playlist toggle, server shutdown) that
+ ;; reach Emacs by falling through to the global map once the semi-char map
+ ;; stops forwarding them.
(with-eval-after-load 'ghostel
- (dolist (key '("C-;" "<f12>"
+ (dolist (key '("C-;" "<f12>" "<f10>" "C-<f10>"
"S-<up>" "S-<down>" "S-<left>" "S-<right>"
"C-M-<up>" "C-M-<down>" "C-M-<left>" "C-M-<right>"))
(add-to-list 'ghostel-keymap-exceptions key))