hook up hg config automatically