This tutorial, while meant to teach how to create a patch, does tell how to ESMify an ESP.
It was originally written by "Display name is already in use" and he kindly gave permission for it's posting here. :foodndrink:
http://www.invision.tesalliance.org/forums/index.php?/topic/1364-creating-a-patch-a-short-how-to/page__view__findpost__p__13814