diff options
| author | Craig Jennings <c@cjennings.net> | 2026-06-25 16:17:26 -0400 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-06-25 16:17:26 -0400 |
| commit | 91c909ae60cfafc336b1d35f8e3a6b511dc5c4a5 (patch) | |
| tree | 8e44ddf51fff9c42bbfdf77d72803e413b2b0702 /tests/testutil-ghostel-buffers.el | |
| parent | ce8407a1bc79a2f36785d5d8f9b50d948fb9e555 (diff) | |
| download | dotemacs-91c909ae60cfafc336b1d35f8e3a6b511dc5c4a5.tar.gz dotemacs-91c909ae60cfafc336b1d35f8e3a6b511dc5c4a5.zip | |
feat(term): toggle EAT instead of ghostel on F12
F12 now creates and toggles a single EAT terminal (pure-elisp, fully themeable) instead of a ghostel one, reusing the existing dock-and-remember geometry toggle. ghostel stays for ai-term on M-SPC. The EAT terminal runs a plain shell with no tmux. F12 and C-; are bound in EAT's semi-char and mode keymaps so they reach Emacs from inside the terminal (EAT forwards unbound keys to the shell otherwise). Retargeted the toggle's buffer predicate and create-new path from ghostel to EAT, and updated the buffer-filter tests to the EAT semantics.
Diffstat (limited to 'tests/testutil-ghostel-buffers.el')
| -rw-r--r-- | tests/testutil-ghostel-buffers.el | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/testutil-ghostel-buffers.el b/tests/testutil-ghostel-buffers.el index 52fb27e0..3c8d75d0 100644 --- a/tests/testutil-ghostel-buffers.el +++ b/tests/testutil-ghostel-buffers.el @@ -45,5 +45,16 @@ ghostel-mode predicate without the side-effects of `(ghostel)'." (setq-local major-mode 'ghostel-mode)) buf)) +(defun cj/test--make-fake-eat-buffer (name) + "Return a buffer named NAME with `major-mode' set to `eat-mode'. + +Avoids actually launching an EAT process by setting the mode buffer-locally. +Used by the F12 toggle tests that need a buffer satisfying the eat-mode +predicate without the side-effects of `(eat)'." + (let ((buf (get-buffer-create name))) + (with-current-buffer buf + (setq-local major-mode 'eat-mode)) + buf)) + (provide 'testutil-ghostel-buffers) ;;; testutil-ghostel-buffers.el ends here |
