Revert ergoemacs-create-hook-function