From: Noam Postavsky <npostavs@users.sourceforge.net>
To: Filipe Silva <filipe.silva@gmail.com>
Cc: Emacs developers <emacs-devel@gnu.org>
Subject: Re: option for loading up a gui specific emacs daemon
Date: Wed, 14 Dec 2016 10:59:39 -0500 [thread overview]
Message-ID: <CAM-tV--wPUhQw9wDLKwTzPuO0YvkZ=9qtLTXcC7hPH3P1DW9ZQ@mail.gmail.com> (raw)
In-Reply-To: <CAEwkUWPYSKD+fymYt33g_rXotsgbvpR3mDQcZts2_koO9-1mag@mail.gmail.com>
On Wed, Dec 14, 2016 at 6:11 AM, Filipe Silva <filipe.silva@gmail.com> wrote:
> Noam, that looks promising. Is there a way to advise display-graphic-p to
> always return true but only if I started emacs as emacs --daemon=gui?
>
(Untested)
(defun gui-daemon-or-other-p (other &rest args)
(if (equal (daemonp) "gui") t
(apply other args)))
(advice-add 'display-graphic-p :around #'gui-daemon-or-other-p)
next prev parent reply other threads:[~2016-12-14 15:59 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-13 23:02 option for loading up a gui specific emacs daemon Filipe Silva
2016-12-13 23:14 ` Alex Hutcheson
2016-12-14 0:02 ` Kaushal Modi
2016-12-14 11:22 ` Filipe Silva
2016-12-14 1:34 ` Noam Postavsky
2016-12-14 11:11 ` Filipe Silva
2016-12-14 15:59 ` Noam Postavsky [this message]
2016-12-14 15:47 ` Eli Zaretskii
2016-12-15 13:10 ` Ken Raeburn
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='CAM-tV--wPUhQw9wDLKwTzPuO0YvkZ=9qtLTXcC7hPH3P1DW9ZQ@mail.gmail.com' \
--to=npostavs@users.sourceforge.net \
--cc=emacs-devel@gnu.org \
--cc=filipe.silva@gmail.com \
/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.