From bdd9d963be270dc60de49c190f5ff51d8d78e405 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Mon, 7 Sep 2020 16:13:16 +0100 Subject: [PATCH] Conditionally start Emacs server Only attempt to start the Emacs server if there isn't already one running. --- emacs/.emacs.d/wpc/wpc-misc.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/emacs/.emacs.d/wpc/wpc-misc.el b/emacs/.emacs.d/wpc/wpc-misc.el index 46c8db825..11ef17cc4 100644 --- a/emacs/.emacs.d/wpc/wpc-misc.el +++ b/emacs/.emacs.d/wpc/wpc-misc.el @@ -303,7 +303,8 @@ (paradox-enable)) ;; Start the Emacs server -(server-start) +(when (not server-process) + (server-start)) (provide 'wpc-misc) ;;; wpc-misc.el ends here