From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?utf-8?Q?=C3=93scar_Fuentes?= Newsgroups: gmane.emacs.help Subject: Re: properly setting up ~/.emacs.d for daemon usage Date: Tue, 13 Dec 2016 22:51:11 +0100 Message-ID: <87k2b3v6pc.fsf@wanadoo.es> References: <87eg1ew32r.fsf@wanadoo.es> <871sxdw48l.fsf@wanadoo.es> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1481670665 301 195.159.176.226 (13 Dec 2016 23:11:05 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 13 Dec 2016 23:11:05 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 14 00:11:00 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cGwDr-0007pr-VB for geh-help-gnu-emacs@m.gmane.org; Wed, 14 Dec 2016 00:11:00 +0100 Original-Received: from localhost ([::1]:44530 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cGwDw-000685-8G for geh-help-gnu-emacs@m.gmane.org; Tue, 13 Dec 2016 18:11:04 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55044) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cGuyr-000116-5W for help-gnu-emacs@gnu.org; Tue, 13 Dec 2016 16:51:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cGuyo-0000iH-1U for help-gnu-emacs@gnu.org; Tue, 13 Dec 2016 16:51:25 -0500 Original-Received: from [195.159.176.226] (port=33017 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cGuyn-0000i2-RF for help-gnu-emacs@gnu.org; Tue, 13 Dec 2016 16:51:21 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1cGuye-0002Cf-Ex for help-gnu-emacs@gnu.org; Tue, 13 Dec 2016 22:51:12 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 17 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:6L4Jfk70Lz8egfr7MDdJX1RTbXg= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-Mailman-Approved-At: Tue, 13 Dec 2016 18:10:40 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:111944 Archived-At: Filipe Silva 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.