>> A better approach might be to add it to .dir-locals.el upstream. What do you >> people think? > > I think the less is added to "dir-locals" the better. Especially, there > shouldn't be any functions there in my opinion.
Thanks, Alex and Pierre, for your replies. But, why is adding to dir-locals not a good idea?