From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: Re: Enable guix-devel-mode only in guix source files Date: Fri, 17 Aug 2018 22:46:23 +0300 Message-ID: <87y3d4wzcg.fsf@gmail.com> References: <87ftzd3pts.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44603) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fqkhX-0008Js-BU for help-guix@gnu.org; Fri, 17 Aug 2018 15:46:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fqkhT-0004Af-D3 for help-guix@gnu.org; Fri, 17 Aug 2018 15:46:27 -0400 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]:40018) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fqkhT-0004AN-5Z for help-guix@gnu.org; Fri, 17 Aug 2018 15:46:23 -0400 Received: by mail-wr1-x443.google.com with SMTP id h15-v6so7979201wrs.7 for ; Fri, 17 Aug 2018 12:46:22 -0700 (PDT) In-Reply-To: <87ftzd3pts.fsf@gmail.com> (Pierre Neidhardt's message of "Fri, 17 Aug 2018 18:44:47 +0200") List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Pierre Neidhardt Cc: help-guix@gnu.org 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 "\\" 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