Variable: server-mode-hook
server-mode-hook is a customizable variable defined in server.el.gz.
Value
nil
Documentation
Hook run after entering or leaving server-mode(var)/server-mode(fun).
No problems result if this variable is not bound.
add-hook automatically binds it. (This is true for all hook variables.)
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)))