Only start server if not already running
This commit is contained in:
parent
a13bd4d283
commit
a887714a78
@ -12,7 +12,11 @@
|
||||
file-name-handler-alist file-name-handler-alist-backup)))
|
||||
|
||||
;; Start the server after init
|
||||
(add-hook 'emacs-startup-hook #'server-start)
|
||||
(autoload 'server-running-p "server")
|
||||
(defun server-start-if-not-running ()
|
||||
(unless (server-running-p)
|
||||
(server-start)))
|
||||
(add-hook 'emacs-startup-hook #'server-start-if-not-running)
|
||||
|
||||
;; Bootstrap the straight.el package manager
|
||||
(defvar bootstrap-version)
|
||||
|
Loading…
Reference in New Issue
Block a user