all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Cannot run emacsclient in GUI
@ 2020-11-04  9:41 Ramón Lorenzo Panadés-Barrueta
  2020-11-04 15:45 ` Eli Zaretskii
  0 siblings, 1 reply; 5+ messages in thread
From: Ramón Lorenzo Panadés-Barrueta @ 2020-11-04  9:41 UTC (permalink / raw)
  To: help-gnu-emacs

Hello everyone,

I have been trying to configure Emacs to have a transparent background when
used in the terminal, and specific background color when used in GUI. For
this I have defined the following hook:

(defun on-after-init ()
  "Make transparent background only for terminal."
  (if (display-graphic-p)
      (progn (message "XWINDOW")
         (set-face-background 'default "#292b2e"))
    (progn (message "TERMINAL")
       (set-face-background 'default "unspecified-bg"))))

(add-hook 'window-setup-hook 'on-after-init)

The above happens to work perfectly for emacs, but not for emacsclient,
which yield the following error:

$ emacsclient -c
Waiting for Emacs...
*ERROR*: Undefined color: "unspecified-bg"

On the other hand emacsclient -nw -c, works as expected. Could anyone
please give me some hints on how to solve this issue?

Thanks in advance.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-11-05 10:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-04  9:41 Cannot run emacsclient in GUI Ramón Lorenzo Panadés-Barrueta
2020-11-04 15:45 ` Eli Zaretskii
2020-11-04 16:19   ` Ergus
2020-11-04 16:39     ` Eli Zaretskii
2020-11-05 10:31       ` Robert Pluim

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.