Based on this question : How to set emacsclient background as Emacs background?
I need background only for frames, not for terminal and not for console.
Here is how I'm trying to add fix for console
(when (display-graphic-p)
(tool-bar-mode -1)
(scroll-bar-mode t)
(require 'nyan-mode)
(nyan-mode)
(nyan-start-animation)
(mouse-wheel-mode t)
(setq default-frame-alist
'((background-color . "#101416")
(foreground-color . "#f6f3e8"))
)
)
But with that I don't get background on emacsclient (even for frames). Maybe the check doesn't even run in emacsclient?
Basically I want to not add background to emacsclient in terminal and console but in frames.
(nCdy-mode)
function directly, which means that the body of your(when (display-graphic-p) ...)
clause is going to be evaluated once at most*, and then only if(display-graphic-p)
is true at the time that Emacs starts. (*) Unless you are also calling (nCdy-mode) elsewhere, but you don't say that you are. – Foreknow