Fix 'No such server' errors in doom//reload-load-path #267

This commit is contained in:
Henrik Lissner 2017-11-14 15:32:11 +01:00
parent 902edfce24
commit a8f4b6cb2c
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -522,8 +522,8 @@ call `doom/reload-load-path' remotely (through emacsclient)."
(cond (noninteractive
(message "Reloading...")
(require 'server)
(when (file-exists-p (if server-use-tcp server-auth-dir server-socket-dir))
(server-eval-at "server" '(doom//reload-load-path))))
(when (server-running-p)
(server-eval-at server-name '(doom//reload-load-path))))
(t
(doom-initialize t)
(message "Reloaded %d packages" (length doom--package-load-path))