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

Emacs

314 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 6 comments
sorted by: hot top controversial new old
[–] salutis1@alien.top 1 points 1 year ago

See the built-in buffer-face-mode.

[–] orzechod@alien.top 1 points 1 year ago (2 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

[–] ondrej-p@alien.top 1 points 1 year ago

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

[–] factotvm@alien.top 1 points 1 year ago

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.

[–] gruzel@alien.top 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.

[–] DeinOnkelFred@alien.top 1 points 1 year ago

Same but for vterm