Is there a hook to execute stuff after I've run
emacs --daemon? I'd like to keep load stuff only when running
emacs --daemon and not when running
I know it sounds like using square wheels, but I do have my reasons.
You can wrap the relevant portions of you init file in a conditional
(daemonp), whose docstring reads:
nilif the current emacs process is a daemon. If the daemon was given a name argument, return that name.
(when (daemonp) (do-server-only-stuff-here))