How to automatically evaluate certain lisp code after starting an emacsclient?
emacs, emacsclient
Solution
You can add a function to the hook `'server-visit-hook`, which is run every time the server is called (every time you call `emacsclient`).
Problem
When starting Emacs, init.el (or .emacs.el) is evaluated. However, when starting emacsclient, no similar lisp code is evaluated. How can I get a lisp file to be evaluated every time I open a new emacsclient? (This would be handy for frame specific customizations.) I assume the answer is to use some hook, but I can't seem to find the correct hook to use. I look forward to your answers.