Fix .dir-locals.el to only apply to specific modes