server-switch-hook

server-switch-hook is a variable defined in `server.el'.
Its value is
nil

  • This variable may be risky if used as a file-local variable.

Documentation:
Hook run when switching to a buffer for the Emacs server.

You can customize this variable.