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: Tue, 13 Dec 2016 22:51:11 +0100	[thread overview]
Message-ID: <87k2b3v6pc.fsf@wanadoo.es> (raw)
In-Reply-To: CAEwkUWN-t66kMoK8XjpbPCW4FmdKA-oCqkxHZfbLO0Xj1XwzDQ@mail.gmail.com

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

> Interestingly enough, (display-graphic-p) still does not work even if
> called from inside a function added to the after-make-frame-functions
> list.

Maybe it "fails" because there is no selected frame yet. What's the
value returned by `selected-frame' inside that function?

It would be useful to show the actual code here.

> I don't know what I can do here. So even this is not a work around.

Try activating the theme *after* a frame was created and selected. That
means, execute (select-frame (make-frame)) at the top of your
.emacs when you intend to use that session on a graphical display. This
is not a general solution, but may be good enough for you.




  reply	other threads:[~2016-12-13 21:51 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
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 [this message]
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=87k2b3v6pc.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.