How do I set the emacsclient background as an Emacs background?… here is a solution to the problem.
How do I set the emacsclient background as an Emacs background?
I have (in my .emacs).
(set-background-color "#101416")
(set-foreground-color "#f6f3e8")
I have 2 bindings (bind:).
alias ex='emacsclient -nw'
alias ec='emacsclient -c -a ""'
ex works fine with the client open in the terminal, but when I want to open it as a frame, I get a white background 🙁
Why and how to use a dark background there?
Solution
set-background-color
and set-foreground-color
only affect the current frame, your .emacs
file will not be executed to run emacsclient
.
Try setting the variable default-frame-alist("Alist of default
values for frame creation”):
(setq default-frame-alist '((background-color . "#101416") (foreground-color . "#f6f3e8")))