mirror of
https://github.com/larstvei/dot-emacs.git
synced 2025-09-19 06:40:12 +00:00
Only start server when it's not already running
This commit is contained in:
parent
9fb33b3c7f
commit
d19a91f485
4
init.org
4
init.org
@ -168,12 +168,14 @@
|
||||
(add-hook
|
||||
'after-init-hook
|
||||
(lambda ()
|
||||
(require 'server)
|
||||
(let ((private-file (concat user-emacs-directory "private.el")))
|
||||
(when (file-exists-p private-file)
|
||||
(load-file private-file))
|
||||
(when (file-exists-p custom-file)
|
||||
(load-file custom-file))
|
||||
(server-start))))
|
||||
(unless (server-running-p)
|
||||
(server-start)))))
|
||||
|
||||
#+end_src
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user