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!

  • gruzel@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

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

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

  • orzechod@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    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

    • factotvm@alien.top
      cake
      B
      link
      fedilink
      English
      arrow-up
      1
      ·
      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.