all repos — nixfiles @ f9568b1426b41ac68b4839987ceb863296647374

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

Emacs: Fix server test
Alan Pearce alan@alanpearce.uk
Fri, 28 Apr 2017 14:25:50 +0200
commit

f9568b1426b41ac68b4839987ceb863296647374

parent

d0a0a298e07beeb36c9d8959b6f8a9eabcd02d38

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

jump to
M emacs/.emacs.d/init.orgemacs/.emacs.d/init.org
@@ -2593,9 +2593,9 @@ Start a server if possible.  A daemon is already a server. #+BEGIN_SRC emacs-lisp
 (use-package server
   :defer 2
-  :if (not (or (daemonp)
-               (server-running-p server-name)))
-  :config (server-start))
+  :if (not (daemonp))
+  :config (unless (server-running-p server-name)
+            (server-start)))
 (setq gc-cons-threshold 800000
       file-name-handler-alist file-name-handler-alist-backup)
 #+END_SRC