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·30+0100
committerWilliam Carroll <wpcarro@gmail.com>2020-09-07T15·30+0100
commitb01ce5059d9e6823a175188400f71f75b802a958 (patch)
tree87d564da8ed74b80d53adfc55fbfa3f6bf40fae5 /emacs/.emacs.d/wpc/wpc-misc.el
parent2afc7536512cda7ccb4fe830ddb1831bfd100e40 (diff)
Debug defensive call to (server-start)
I was previously relying on the variable `server-process` being set, but this
only resulted in false-negatives and broken initializations. This should make my
Emacs initialization more stable.
Diffstat (limited to 'emacs/.emacs.d/wpc/wpc-misc.el')
-rw-r--r--emacs/.emacs.d/wpc/wpc-misc.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/emacs/.emacs.d/wpc/wpc-misc.el b/emacs/.emacs.d/wpc/wpc-misc.el
index 11ef17cc4f6c..8ef3f2f63ab2 100644
--- a/emacs/.emacs.d/wpc/wpc-misc.el
+++ b/emacs/.emacs.d/wpc/wpc-misc.el
@@ -303,7 +303,7 @@
   (paradox-enable))
 
 ;; Start the Emacs server
-(when (not server-process)
+(when (not (server-running-p))
   (server-start))
 
 (provide 'wpc-misc)