From 257caac8bf1d776ef64b9f28229bf3641524af02 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 29 Jun 2014 22:26:55 +0100 Subject: Emacs: check if server is already running --- tag-emacs/emacs.d/init.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tag-emacs') diff --git a/tag-emacs/emacs.d/init.el b/tag-emacs/emacs.d/init.el index 2200ad1..e389aed 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))) -- cgit 1.4.1