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.
Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. It only takes a minute to sign up.Sign up to join this community
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))