server-visit-hook

server-visit-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 visiting a file for the Emacs server.

You can customize this variable.