technomancy/robert-hooke — pull request #10 by hugoduncan (2012-09-27 14:50:59+00:00)
Title: Add scopes for hooks

Adds a hook-scope macro that provides a scope which records any change to
hooks during the dynamic scope of its body, and restores hooks to their
original state on exit of the scope.

This has only been lightly tested, as I wanted to get feedback as to whether this was a welcome addition or not. The motivation for this is to allow lein sub to apply plugins properly to sub-projects, without having their hooks spill over between projects.