From 7a7700855f94839607b88e7833d940d01716ede0 Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Sun, 8 Jun 2025 14:51:25 +0200 Subject: [PATCH] feat(shell/eat): improve eat configuration This commit enables eat-mode in Eshell, allowing the use of tools that normally would not work in Eshell. It also automatically closes the eat buffer when exiting the shell instead of keeping it open. --- docs/emacs/keybindings.org | 10 +++++----- docs/emacs/packages/applications.org | 7 ++++++- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/docs/emacs/keybindings.org b/docs/emacs/keybindings.org index eef6853..f5535a1 100644 --- a/docs/emacs/keybindings.org +++ b/docs/emacs/keybindings.org @@ -116,11 +116,11 @@ Here are my apps keybindings. Each one of them is prefixed by ~a~. *** Shell apps I also have two main shell-related functions, prefixed with ~as~. #+name: keybindings-apps-shell -| Key | Function | Description | Package | -|-----+-------------+-------------+-------------| -| | | shells | | -| e | eshell-new | | | -| t | eat | | eat | +| Key | Function | Description | Package | +|-----+------------+-------------+---------| +| | | shells | | +| e | eshell-new | | | +| t | eat | | eat | *** Treemacs #+name: keybindings-treemacs diff --git a/docs/emacs/packages/applications.org b/docs/emacs/packages/applications.org index 9d0996b..c3ec412 100644 --- a/docs/emacs/packages/applications.org +++ b/docs/emacs/packages/applications.org @@ -1555,7 +1555,12 @@ for VTerm as I never got VTerm to actually work on NixOS. "*.ti" ("terminfo/e" "terminfo/e/*") ("terminfo/65" "terminfo/65/*") ("integration" "integration/*") - (:exclude ".dir-locals.el" "*-tests.el")))) + (:exclude ".dir-locals.el" "*-tests.el"))) + :init + (add-hook 'eshell-load-hook #'eat-eshell-mode) + (eat-eshell-mode 1) + :config + (add-hook 'eat-exit-hook #'kill-this-buffer)) #+end_src *** Shell-pop