From: "Ramón Lorenzo Panadés-Barrueta" <rpana92@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Cannot run emacsclient in GUI
Date: Wed, 4 Nov 2020 10:41:31 +0100 [thread overview]
Message-ID: <CAA_0uOR0g_JTDKyErk+rxdX2ABjhVHrp4Tk74hBDV9egrauDng@mail.gmail.com> (raw)
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.
next reply other threads:[~2020-11-04 9:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-04 9:41 Ramón Lorenzo Panadés-Barrueta [this message]
2020-11-04 15:45 ` Cannot run emacsclient in GUI Eli Zaretskii
2020-11-04 16:19 ` Ergus
2020-11-04 16:39 ` Eli Zaretskii
2020-11-05 10:31 ` Robert Pluim
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAA_0uOR0g_JTDKyErk+rxdX2ABjhVHrp4Tk74hBDV9egrauDng@mail.gmail.com \
--to=rpana92@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.