[Init] Start server if not already running

Regardless of whether on Windows or on Linux
This commit is contained in:
Daniel - 2018-01-12 20:52:24 +01:00
parent 64c4f231bd
commit 33d5531797
Signed by: dbo
GPG Key ID: 4F63DB96D45AA9C6
1 changed files with 5 additions and 2 deletions

View File

@ -320,9 +320,9 @@ _h_ _l_ _o_k _y_ank
'(defun enriched-decode-display-prop (start end &optional param)
(list start end)))
;; Start Server when on Windows
;; Start Server when not running already
(when on-windows
(unless (server-running-p)
(server-start))
t)
@ -575,6 +575,9 @@ _h_ _l_ _o_k _y_ank
(add-hook 'input-method-activate-hook
#'db/add-symbols-to-TeX-input-method)))
(use-package server
:commands (server-running-p server-start))
;; * Some essential packages