Thanks to this reddit I’ve just learned about the Eat terminal emulator, which is really wonderful, especially for someone with that desire to live entirely inside emacs.
My only issue is mostly aesthetic. I use EXWM and usually run kitty inside it because I like having my terminals have a different background color than my buffers.
Is it possible to have emacs color my Eat buffers differently than others?
Thanks for any advice!
it is possible! add a lambda to
eat-mode-hook
which callsface-remap-add-relative
fordefault
and, optionally,fringe
faces. here’s an example taken from my own dotfiles:(add-hook 'eat-mode-hook (lambda () (face-remap-add-relative 'default :foreground "#ffffff" :background "#000000") (face-remap-add-relative 'fringe :foreground "#ffffff" :background "#000000")))
and here’s what it looks like in practice: https://imgur.com/a/9gPCio5
Bingo! Thank you very much! Exactly what I was hoping for!
If I may… you might find it easier on the eyes to avoid true black and true white. Since we’re talking aesthetics… If you need high contrast, stick to those values. But most people find almost black and almost white looks more pleasing.
Same but for vterm
M-x set-background-color works for me.
Probably there’s a way to automatically activate it when entering into Eat.
See the built-in
buffer-face-mode
.