all repos — nixfiles @ 257caac8bf1d776ef64b9f28229bf3641524af02

System and user configuration, managed by nix and home-manager

Emacs: check if server is already running
Alan Pearce alan@alanpearce.co.uk
Sun, 29 Jun 2014 22:26:55 +0100
commit

257caac8bf1d776ef64b9f28229bf3641524af02

parent

9c4486c64daf09ca2d70557ca0d7d924ff99c543

1 files changed, 4 insertions(+), 1 deletions(-)

jump to
M tag-emacs/emacs.d/init.eltag-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)))