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 | fe7aa6585fc065b4c90e5f7f3c69ae5e647378b3 (patch) | |
| tree | 2510f100949f4c3d87d58601a7acff49c15ebfcd /tests/testutil-ghostel-buffers.el | |
| parent | 4205e8e3f73b09a36099b91c741944f4e1a10296 (diff) | |
| download | dotemacs-fe7aa6585fc065b4c90e5f7f3c69ae5e647378b3.tar.gz dotemacs-fe7aa6585fc065b4c90e5f7f3c69ae5e647378b3.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 52fb27e00..3c8d75d00 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 |
