Fix some syntax warnings and add conf got imenu.