|
From: | Alex Kost |
Subject: | Re: Enable guix-devel-mode only in guix source files |
Date: | Fri, 17 Aug 2018 22:46:23 +0300 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
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
[Prev in Thread] | Current Thread | [Next in Thread] |