Add codesearch index in every mode inside the dir-locals snippet template.