all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Óscar Fuentes" <ofv@wanadoo.es>
To: help-gnu-emacs@gnu.org
Subject: Re: properly setting up ~/.emacs.d for daemon usage
Date: Mon, 12 Dec 2016 16:34:34 +0100	[thread overview]
Message-ID: <871sxdw48l.fsf@wanadoo.es> (raw)
In-Reply-To: CAEwkUWPizZCq3Bzn9cc3CyVzeqg9Z9CRH-9CfJAKUhyPdZq3OA@mail.gmail.com

Filipe Silva <filipe.silva@gmail.com> writes:

> ​Óscar, sure. Here are some specifics:
>
> 1) The gui theme I use, zerodark (By Nicolas Petton, who is redesign
> elpa.gnu.org), queries display-graphic-p everytime it goes about defining a
> palete element:
>
> https://github.com/NicolasPetton/zerodark-theme/blob/master/zerodark-theme.el#L158-L162

That package assumes that a session will be either graphical or textual.
Apart from --daemon, you can activate server mode on any Emacs session,
thus making possible to create frames of either type.

From my POV packages like this one are broken. Emacs allows to define
faces providing conditional values: this for ttys and that for X, etc. I
don't know why those themes go the (display-graphic-p) route.

You could advise display-graphic-p to return a value depending on how do
you intend to use that daemon. Try looking into command-line-args for
"--daemon=XXX" or, if that argument was already consumed, put some other
mark on the command line such as --eval="(quote graphical)".




  reply	other threads:[~2016-12-12 15:34 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-11 13:10 properly setting up ~/.emacs.d for daemon usage Filipe Silva
2016-12-11 21:47 ` Óscar Fuentes
2016-12-12 14:10   ` Filipe Silva
2016-12-12 15:34     ` Óscar Fuentes [this message]
2016-12-12 18:47       ` Filipe Silva
2016-12-12 19:48         ` Óscar Fuentes
2016-12-13 11:07         ` Yuri Khan
2016-12-13 21:31           ` Filipe Silva
2016-12-13 21:51             ` Óscar Fuentes
2016-12-13 23:49               ` Kaushal Modi
2016-12-14 11:26                 ` Filipe Silva
2016-12-13 22:53             ` Filipe Silva
2016-12-13 23:14               ` Óscar Fuentes
2016-12-12 16:46     ` Yuri Khan
2016-12-12 19:29       ` Eli Zaretskii
2016-12-11 23:17 ` Stefan Monnier

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=871sxdw48l.fsf@wanadoo.es \
    --to=ofv@wanadoo.es \
    --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.