On Thu, Jan 17, 2019 at 4:50 PM Eli Zaretskii <eliz@gnu.org> wrote:
> So, what should I replace `window-setup-hook' with that runs in both -nw mode and GUI mode emacsclient?

Emacs 27 has server-after-make-frame-function which you could use.

Thanks! That's good to know.