this post was submitted on 17 Oct 2023
1 points (100.0% liked)

Emacs

305 readers
1 users here now

A community for the timeless and infinitely powerful editor. Want to see what Emacs is capable of?!

Get Emacs

Rules

  1. Posts should be emacs related
  2. Be kind please
  3. Yes, we already know: Google results for "emacs" and "vi" link to each other. We good.

Emacs Resources

Emacs Tutorials

Useful Emacs configuration files and distributions

Quick pain-saver tip

founded 1 year ago
MODERATORS
 

Hey there,

Maybe I'm just missing something obvious, but I'm a little bit confused as to how eat-eshell-mode works. If I, for example, fire up Eshell with Eat installed:

(elpaca-test
  :interactive t
  :init
  (elpaca eat (eat-eshell-mode))
  (eshell))

Then I try running e.g. top, I'd expect top to open in an Eat buffer, but it's not doing that for me right now: it just opens in plain ol' dumpy Term mode.

What am I missing? Is this not what Eshell integration is supposed to do? How do you use Eshell and Eat together?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 11 months ago (1 children)

Thank you! That's helpful. I'm a little confused: what benefit does turning the eshell buffer into an eat terminal give you? Better perf? I'm still new to eshell and stuff.

[–] [email protected] 1 points 11 months ago (3 children)

Oooooooooohhhhhhhhhh… I can run things like cal or julia and it handles all the escape codes seamlessly. Wow. Totally sold now.

[–] [email protected] 1 points 11 months ago

This exactly. For me it's neofetch

[–] [email protected] 1 points 11 months ago

this is why I'm so hype about it lol

[–] [email protected] 1 points 11 months ago (1 children)

Any tips on how to deal with $TERM being eat-truecolor? It confuses some apps, e.g. julia is monocolor

[–] [email protected] 1 points 11 months ago

This is my current config: set TERM to "xterm", and fix the otherwise impossible-to-see ANSI blue:

(use-package eat
  :custom
  (eat-term-name "xterm")
  :custom-face
  (ansi-color-bright-blue ((t (:foreground "#00afff" :background "#00afff"))))
  :config
  (evil-set-initial-state 'eat-mode 'emacs)
  (eat-eshell-mode)
  (eat-eshell-visual-command-mode))