summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2014-06-29 22:26:55 +0100
committerAlan Pearce2014-06-29 22:26:55 +0100
commit257caac8bf1d776ef64b9f28229bf3641524af02 (patch)
treeb5dcd0d9f2bf90a640d8b470b84616f439007944
parent9c4486c64daf09ca2d70557ca0d7d924ff99c543 (diff)
downloadnixfiles-257caac8bf1d776ef64b9f28229bf3641524af02.tar.lz
nixfiles-257caac8bf1d776ef64b9f28229bf3641524af02.tar.zst
nixfiles-257caac8bf1d776ef64b9f28229bf3641524af02.zip
Emacs: check if server is already running
-rw-r--r--tag-emacs/emacs.d/init.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/tag-emacs/emacs.d/init.el b/tag-emacs/emacs.d/init.el
index 2200ad1f..e389aed5 100644
--- a/tag-emacs/emacs.d/init.el
+++ b/tag-emacs/emacs.d/init.el
@@ -1108,4 +1108,7 @@
 (req-package-finish)
 
 (unless (daemonp)
-  (server-start))
+  (require 'server)
+  (if (server-running-p server-name)
+      (message "Server already appears to be running")
+      (server-start)))