How to set emacsclient background as Emacs background?
Asked Answered
G

1

3

I've got (in my .emacs)

(set-background-color "#101416")
(set-foreground-color "#f6f3e8")

And I've got 2 bindings:

alias ex='emacsclient -nw'
alias ec='emacsclient -c -a ""'

ex works fine to open client in terminal but when I want to open it as a frame I've got white background :(

Why and how can I use my dark background there?

Gillispie answered 14/2, 2012 at 4:58 Comment(0)
G
4

set-background-color and set-foreground-color only affect the current frame, and your .emacs file is not executed when running emacsclient.

Try setting the variable default-frame-alist ("Alist of default values for frame creation") instead:

(setq default-frame-alist
      '((background-color . "#101416")
        (foreground-color . "#f6f3e8")))
Gillman answered 14/2, 2012 at 13:38 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.