Load server on focus-out

In case the user switches to a terminal to use emacsclient as soon as
emacs is started.
This commit is contained in:
Henrik Lissner 2019-07-10 20:35:28 +02:00
parent eb7d4bf0e8
commit 3423ecc3d3
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -180,7 +180,7 @@ savehist file."
(def-package! server
:when (display-graphic-p)
:after-call (pre-command-hook after-find-file)
:after-call (pre-command-hook after-find-file focus-out-hook)
:init
(when-let (name (getenv "EMACS_SERVER_NAME"))
(setq server-name name))