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: Tue, 21 Aug 2018 18:15:51 +0300 Message-ID: <874lfnsqc8.fsf@gmail.com> References: <87ftzd3pts.fsf@gmail.com> <87y3d4wzcg.fsf@gmail.com> <87r2isvmja.fsf@gmail.com> <87ftz83co1.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47629) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fs8Ny-0002kW-Al for help-guix@gnu.org; Tue, 21 Aug 2018 11:15:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fs8Nu-0003lg-VT for help-guix@gnu.org; Tue, 21 Aug 2018 11:15:58 -0400 Received: from mail-wm0-x236.google.com ([2a00:1450:400c:c09::236]:55824) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fs8Nu-0003kN-Mh for help-guix@gnu.org; Tue, 21 Aug 2018 11:15:54 -0400 Received: by mail-wm0-x236.google.com with SMTP id f21-v6so3295165wmc.5 for ; Tue, 21 Aug 2018 08:15:54 -0700 (PDT) In-Reply-To: <87ftz83co1.fsf@gmail.com> (Pierre Neidhardt's message of "Tue, 21 Aug 2018 00:18:06 +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-21 00:18 +0200) wrote: >> - add a function to the Guix ".dir-locals.el" (does dir-locals support >> functions at all?) > > I haven't tested, but currently .dir-locals.el contains > > (scheme-mode > . > (indent-tabs-mode . nil) > > I suppose we can add > > (scheme-mode > . > (indent-tabs-mode . nil) > (guix-devel-mode . t) Ah, that's what you meant. I think this is horrible :-) >> - the function to set up a third-party package (Emacs-Guix)! Why Guix >> should do it? > > Sorry, what do you mean? Guix and Emacs-Guix are separate projects. And a user is not forced to use Emacs-Guix, so calling 'guix-devel-mode' will simply fail if Emacs-Guix is not installed. So I think this addition to dir-locals would be a bad decision. -- Alex