refactor: remove redundant server-auth-dir setting
And move server-name setter to :config.
This commit is contained in:
parent
55c27a0ae9
commit
7fd6cd4398
1 changed files with 1 additions and 3 deletions
|
@ -409,12 +409,10 @@ files, so this replace calls to `pp' with the much faster `prin1'."
|
||||||
(use-package! server
|
(use-package! server
|
||||||
:when (display-graphic-p)
|
:when (display-graphic-p)
|
||||||
:after-call doom-first-input-hook doom-first-file-hook focus-out-hook
|
:after-call doom-first-input-hook doom-first-file-hook focus-out-hook
|
||||||
:custom (server-auth-dir (concat doom-emacs-dir "server/"))
|
|
||||||
:defer 1
|
:defer 1
|
||||||
:init
|
:config
|
||||||
(when-let (name (getenv "EMACS_SERVER_NAME"))
|
(when-let (name (getenv "EMACS_SERVER_NAME"))
|
||||||
(setq server-name name))
|
(setq server-name name))
|
||||||
:config
|
|
||||||
(unless (server-running-p)
|
(unless (server-running-p)
|
||||||
(server-start)))
|
(server-start)))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue