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.
This commit is contained in:
Lucien Cartier-Tilet 2025-06-08 14:51:25 +02:00
parent b330e1c7e0
commit 7a7700855f
Signed by: phundrak
SSH Key Fingerprint: SHA256:CE0HPsbW3L2YiJETx1zYZ2muMptaAqTN2g3498KrMkc
2 changed files with 11 additions and 6 deletions

View File

@ -117,7 +117,7 @@ Here are my apps keybindings. Each one of them is prefixed by ~a~.
I also have two main shell-related functions, prefixed with ~as~. I also have two main shell-related functions, prefixed with ~as~.
#+name: keybindings-apps-shell #+name: keybindings-apps-shell
| Key | Function | Description | Package | | Key | Function | Description | Package |
|-----+-------------+-------------+-------------| |-----+------------+-------------+---------|
| | | shells | | | | | shells | |
| e | eshell-new | | | | e | eshell-new | | |
| t | eat | | eat | | t | eat | | eat |

View File

@ -1555,7 +1555,12 @@ for VTerm as I never got VTerm to actually work on NixOS.
"*.ti" ("terminfo/e" "terminfo/e/*") "*.ti" ("terminfo/e" "terminfo/e/*")
("terminfo/65" "terminfo/65/*") ("terminfo/65" "terminfo/65/*")
("integration" "integration/*") ("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 #+end_src
*** Shell-pop *** Shell-pop