this post was submitted on 08 Nov 2023
1 points (100.0% liked)

Emacs

311 readers
2 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
 

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!

top 5 comments
sorted by: hot top controversial new old
[–] [email protected] 1 points 1 year ago

M-x set-background-color works for me.

Probably there's a way to automatically activate it when entering into Eat.

[–] [email protected] 1 points 1 year ago (1 children)

it is possible! add a lambda to eat-mode-hook which calls face-remap-add-relative for default 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

[–] [email protected] 1 points 1 year ago

Bingo! Thank you very much! Exactly what I was hoping for!

[–] [email protected] 1 points 1 year ago

Same but for vterm

[–] [email protected] 1 points 1 year ago

See the built-in buffer-face-mode.