Make the Emacs server optional
Add `dotspacemacs-enable-server`, which if non-nil prevents Spacemacs from calling `(server-start)` at init.
This commit is contained in:
parent
982308f1b3
commit
662b73282c
|
@ -337,6 +337,9 @@ This variable can also be set to a property list for finer control:
|
|||
The property `:enabled-for-modes' takes priority over `:disabled-for-modes' and
|
||||
restricts line-number to the specified list of major-mode.")
|
||||
|
||||
(defvar dotspacemacs-enable-server t
|
||||
"If non-nil, start an Emacs server if one is not already running.")
|
||||
|
||||
(defvar dotspacemacs-persistent-server nil
|
||||
"If non nil advises quit functions to keep server open when quitting.")
|
||||
|
||||
|
|
|
@ -377,6 +377,9 @@ It should only modify the values of Spacemacs settings."
|
|||
;; emphasis the current one). (default 'all)
|
||||
dotspacemacs-highlight-delimiters 'all
|
||||
|
||||
;; If non-nil, start an Emacs server if one is not already running.
|
||||
dotspacemacs-enable-server t
|
||||
|
||||
;; If non-nil, advise quit functions to keep server open when quitting.
|
||||
;; (default nil)
|
||||
dotspacemacs-persistent-server nil
|
||||
|
|
|
@ -190,6 +190,7 @@
|
|||
- [[#emacs-server][Emacs Server]]
|
||||
- [[#connecting-to-the-emacs-server][Connecting to the Emacs server]]
|
||||
- [[#keeping-the-server-alive][Keeping the server alive]]
|
||||
- [[#disabling-the-emacs-server][Disabling the Emacs server]]
|
||||
- [[#troubleshoot][Troubleshoot]]
|
||||
- [[#loading-fails][Loading fails]]
|
||||
- [[#upgradingdowngrading-emacs-version][Upgrading/Downgrading Emacs version]]
|
||||
|
@ -3276,6 +3277,14 @@ server is to use the following bindings:
|
|||
| ~SPC q t~ | Restart Emacs and debug with --with-timed-requires |
|
||||
| ~SPC q T~ | Restart Emacs and debug with --adv-timers |
|
||||
|
||||
** Disabling the Emacs server
|
||||
You can disable the built-in server by setting the variable
|
||||
=dotspacemacs-enable-server= to =nil= in your =~/.spacemacs=.
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(setq-default dotspacemacs-enable-server nil)
|
||||
#+END_SRC
|
||||
|
||||
* Troubleshoot
|
||||
** Loading fails
|
||||
If any errors happen during the loading the mode-line will turn red and the
|
||||
|
|
Loading…
Reference in New Issue