Variable: server-name

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

Value

"server"

Documentation

The name of the Emacs server, if this Emacs process creates one.

The command server-start makes use of this. It should not be changed while a server is running. If this is a file name with no leading directories, Emacs will create a socket file by that name under server-socket-dir if server-use-tcp is nil, else under server-auth-dir. If this is an absolute file name, it specifies where the socket file will be created. To have emacsclient connect to the same socket, use the "-s" switch for local non-TCP sockets, and the "-f" switch otherwise.

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

View in manual

Probably introduced at or before Emacs version 27.1.

Source Code

;; Defined in /usr/src/emacs/lisp/server.el.gz
(defcustom server-name
  (if internal--daemon-sockname
      (file-name-nondirectory internal--daemon-sockname)
    "server")
  "The name of the Emacs server, if this Emacs process creates one.
The command `server-start' makes use of this.  It should not be
changed while a server is running.
If this is a file name with no leading directories, Emacs will
create a socket file by that name under `server-socket-dir'
if `server-use-tcp' is nil, else under `server-auth-dir'.
If this is an absolute file name, it specifies where the socket
file will be created.  To have emacsclient connect to the same
socket, use the \"-s\" switch for local non-TCP sockets, and
the \"-f\" switch otherwise."
  :type 'string
  :version "23.1")