diff options
author | William Carroll <wpcarro@gmail.com> | 2020-09-07T15·13+0100 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2020-09-07T15·14+0100 |
commit | bdd9d963be270dc60de49c190f5ff51d8d78e405 (patch) | |
tree | d536aafaeef3e4340de20722fde3013c3bfff812 /emacs/.emacs.d | |
parent | 0f2a13a32ac63dce6506965d735ca8a36f477740 (diff) |
Conditionally start Emacs server
Only attempt to start the Emacs server if there isn't already one running.
Diffstat (limited to 'emacs/.emacs.d')
-rw-r--r-- | emacs/.emacs.d/wpc/wpc-misc.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/emacs/.emacs.d/wpc/wpc-misc.el b/emacs/.emacs.d/wpc/wpc-misc.el index 46c8db8254b9..11ef17cc4f6c 100644 --- a/emacs/.emacs.d/wpc/wpc-misc.el +++ b/emacs/.emacs.d/wpc/wpc-misc.el @@ -303,7 +303,8 @@ (paradox-enable)) ;; Start the Emacs server -(server-start) +(when (not server-process) + (server-start)) (provide 'wpc-misc) ;;; wpc-misc.el ends here |