Move add-hook to activate function.

lein2 reports problems without this patch.