Variable: server-mode

server-mode is a customizable variable defined in server.el.gz.

Value

nil

Documentation

Non-nil if Server mode is enabled.

See the server-mode(var)/server-mode(fun) command for a description of this minor mode. Setting this variable directly does not take effect; either customize it (see the info node (emacs)Easy Customization) or call the function server-mode(var)/server-mode(fun).

This variable was added, or its default value changed, in Emacs 22.1.

Probably introduced at or before Emacs version 22.1.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/server.el.gz
;;;###autoload
(define-minor-mode server-mode
  "Toggle Server mode.

Server mode runs a process that accepts commands from the
`emacsclient' program.  See Info node `Emacs server' and
`server-start' for details."
  :global t
  :version "22.1"
  :keymap server-mode-map
  ;; Fixme: Should this check for an existing server socket and do
  ;; nothing if there is one (for multiple Emacs sessions)?
  (server-start (not server-mode)))