Pierre Neidhardt (2018-08-17 18:44 +0200) wrote: > I do exactly what you suggested: > > (defun ambrevar/init-guix () > (and buffer-file-name > (string-match "\\<guix\\>" buffer-file-name) ; Adapt this to your > install. > (guix-devel-mode))) > (add-hook 'scheme-mode-hook 'ambrevar/init-guix) > > 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. -- Alex