config: generate src/.dir-locals.el from template