about summary refs log tree commit diff
path: root/emacs/.emacs.d/wpc/wpc-misc.el
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-09-07T15·13+0100
committerWilliam Carroll <wpcarro@gmail.com>2020-09-07T15·14+0100
commitbdd9d963be270dc60de49c190f5ff51d8d78e405 (patch)
treed536aafaeef3e4340de20722fde3013c3bfff812 /emacs/.emacs.d/wpc/wpc-misc.el
parent0f2a13a32ac63dce6506965d735ca8a36f477740 (diff)
Conditionally start Emacs server
Only attempt to start the Emacs server if there isn't already one
running.
Diffstat (limited to 'emacs/.emacs.d/wpc/wpc-misc.el')
-rw-r--r--emacs/.emacs.d/wpc/wpc-misc.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/emacs/.emacs.d/wpc/wpc-misc.el b/emacs/.emacs.d/wpc/wpc-misc.el
index 46c8db8254b9..11ef17cc4f6c 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