From 0b74f6241a2d0736572f1e0653c1f96e89756f56 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Thu, 25 Jun 2026 22:23:53 -0400 Subject: feat(eshell): run eshell commands through EAT via eat-eshell-mode Enable eat-eshell-mode so eshell's external commands run in a real EAT terminal: visual commands (vim, htop, less) render properly and ANSI output is faithful, while eshell stays the shell (elisp functions as commands, TRAMP transparency). Activated when eshell loads. EAT handles color natively, so it likely supersedes xterm-color for eshell -- left in place pending an interactive color check. --- modules/eshell-config.el | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'modules') diff --git a/modules/eshell-config.el b/modules/eshell-config.el index c2ec6d152..33b900af6 100644 --- a/modules/eshell-config.el +++ b/modules/eshell-config.el @@ -179,6 +179,15 @@ pairs where COMMAND is the `cd' string `eshell/alias' should run." (delete-window))) (advice-add 'eshell-life-is-too-much :after 'cj/eshell-delete-window-on-exit) +;; Run eshell's external commands through EAT (a real terminal): visual commands +;; (vim, htop, less) render properly and ANSI output is faithful, while eshell +;; stays the shell -- elisp functions as commands + TRAMP transparency. EAT +;; handles color itself, so it supersedes xterm-color for eshell; the +;; xterm-color block below stays for now and steps aside if colors double up. +(with-eval-after-load 'esh-mode + (require 'eat) + (eat-eshell-mode 1)) + (use-package eshell-toggle :custom (eshell-toggle-size-fraction 2) -- cgit v1.2.3