unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: [elpa] externals/exwm 21351f6 2/2: Be more precise when choosing the init hook
       [not found] ` <20171108172936.E095720A24@vcs0.savannah.gnu.org>
@ 2017-11-08 18:05   ` Stefan Monnier
  2017-11-12 16:32     ` Chris Feng
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Monnier @ 2017-11-08 18:05 UTC (permalink / raw)
  To: emacs-devel; +Cc: Chris Feng

> +     (if (display-graphic-p)
> +         ;; emacs.
> +         (add-hook 'window-setup-hook #'exwm-init t)
> +       ;; emacsclient.
> +       (add-hook 'after-make-frame-functions #'exwm-init t))

AKA

      (add-hook (if (display-graphic-p)
                    'window-setup-hook         ;; emacs
                  'after-make-frame-functions) ;; emacsclient
                #'exwm-init t)

But maybe you should check `daemonp` instead?


        Stefan



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [elpa] externals/exwm 21351f6 2/2: Be more precise when choosing the init hook
  2017-11-08 18:05   ` [elpa] externals/exwm 21351f6 2/2: Be more precise when choosing the init hook Stefan Monnier
@ 2017-11-12 16:32     ` Chris Feng
  0 siblings, 0 replies; 2+ messages in thread
From: Chris Feng @ 2017-11-12 16:32 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 53 bytes --]

Actually daemonp fits better here.  I'll push a fix.

[-- Attachment #2: Type: text/html, Size: 81 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-11-12 16:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20171108172935.23152.50187@vcs0.savannah.gnu.org>
     [not found] ` <20171108172936.E095720A24@vcs0.savannah.gnu.org>
2017-11-08 18:05   ` [elpa] externals/exwm 21351f6 2/2: Be more precise when choosing the init hook Stefan Monnier
2017-11-12 16:32     ` Chris Feng

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).