From b099c779343119ce40f2636469e118ec104002e0 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 10 May 2026 03:25:35 -0500 Subject: refactor: split eshell-vterm-config into eshell-config and vterm-config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The combined module had grown to 573 lines covering two unrelated subsystems with no shared state — the eshell shell-mode commands and the vterm/F12 toggle. The header even rendered this with two `;; ----` dividers. Split into two focused modules. eshell-config.el keeps the eshell user commands and package wiring (~170 lines). vterm-config.el keeps the vterm package, the tmux history capture command, the F12 toggle, and the C-; V keymap (~400 lines). Update init.el to require both, point the four vterm test files at vterm-config, and refresh the cross-module commentary in cj-window-geometry.el and cj-window-toggle.el. No behavior change. Full test suite green; validate-modules clean. --- tests/test-vterm-tmux-history.el | 2 +- tests/test-vterm-toggle--buffer-filter.el | 2 +- tests/test-vterm-toggle--dispatch.el | 2 +- tests/test-vterm-toggle--display.el | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/test-vterm-tmux-history.el b/tests/test-vterm-tmux-history.el index 33fa13300..754ddc9c1 100644 --- a/tests/test-vterm-tmux-history.el +++ b/tests/test-vterm-tmux-history.el @@ -15,7 +15,7 @@ (defvar vterm-mode-map (make-sparse-keymap)) (defvar vterm-copy-mode-map (make-sparse-keymap)) (keymap-set vterm-mode-map "C-c C-t" #'ignore) -(require 'eshell-vterm-config) +(require 'vterm-config) (require 'testutil-vterm-buffers) (defmacro test-vterm-tmux-history--with-tmux-mock (responses &rest body) diff --git a/tests/test-vterm-toggle--buffer-filter.el b/tests/test-vterm-toggle--buffer-filter.el index 966814618..82afe756d 100644 --- a/tests/test-vterm-toggle--buffer-filter.el +++ b/tests/test-vterm-toggle--buffer-filter.el @@ -13,7 +13,7 @@ (add-to-list 'load-path (expand-file-name "modules" user-emacs-directory)) (add-to-list 'load-path (expand-file-name "tests" user-emacs-directory)) -(require 'eshell-vterm-config) +(require 'vterm-config) (require 'testutil-vterm-buffers) (defun test-vterm-toggle--cleanup () diff --git a/tests/test-vterm-toggle--dispatch.el b/tests/test-vterm-toggle--dispatch.el index 93c06467c..7e87f2b11 100644 --- a/tests/test-vterm-toggle--dispatch.el +++ b/tests/test-vterm-toggle--dispatch.el @@ -14,7 +14,7 @@ (add-to-list 'load-path (expand-file-name "modules" user-emacs-directory)) (add-to-list 'load-path (expand-file-name "tests" user-emacs-directory)) -(require 'eshell-vterm-config) +(require 'vterm-config) (require 'testutil-vterm-buffers) (ert-deftest test-vterm-toggle--dispatch-window-displayed-returns-toggle-off () diff --git a/tests/test-vterm-toggle--display.el b/tests/test-vterm-toggle--display.el index ed7cd8588..69bf23609 100644 --- a/tests/test-vterm-toggle--display.el +++ b/tests/test-vterm-toggle--display.el @@ -14,7 +14,7 @@ (require 'cl-lib) (add-to-list 'load-path (expand-file-name "modules" user-emacs-directory)) -(require 'eshell-vterm-config) +(require 'vterm-config) (ert-deftest test-vterm-toggle--capture-state-records-direction-and-size () "Normal: capture-state writes direction and integer body size." -- cgit v1.2.3