emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: option for loading up a gui specific emacs daemon


From: Noam Postavsky
Subject: Re: option for loading up a gui specific emacs daemon
Date: Wed, 14 Dec 2016 10:59:39 -0500

On Wed, Dec 14, 2016 at 6:11 AM, Filipe Silva <address@hidden> 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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]