Skip to content

Commit

Permalink
Load server on focus-out
Browse files Browse the repository at this point in the history
In case the user switches to a terminal to use emacsclient as soon as
emacs is started.
  • Loading branch information
hlissner committed Jul 10, 2019
1 parent eb7d4bf commit 3423ecc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/core-editor.el
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 3423ecc

Please sign in to comment.