hgrc: Add onsub extension.