summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--emacs.d/init.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/emacs.d/init.el b/emacs.d/init.el
index 7aa0a77..54fe001 100644
--- a/emacs.d/init.el
+++ b/emacs.d/init.el
@@ -22,6 +22,10 @@
 (use-package my-settings)
 (use-package my-functions)
 
+(use-package server
+  :config
+  (unless (server-running-p) (server-start)))
+
 ;; other packages
 (use-package ag
   :ensure t
@@ -374,10 +378,7 @@
 (define-key emacs-lisp-mode-map (kbd "C-c C-e") 'eval-buffer)
 (define-key emacs-lisp-mode-map (kbd "C-c C-r") 'eval-region)
 
-;; start the server if not already running
-(require 'server)
-(unless (server-running-p)
-  (server-start))
+
 (custom-set-variables
  ;; custom-set-variables was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.