From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Neidhardt Subject: Re: Enable guix-devel-mode only in guix source files Date: Fri, 17 Aug 2018 18:44:47 +0200 Message-ID: <87ftzd3pts.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54849) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fqhrr-0006bd-HJ for help-guix@gnu.org; Fri, 17 Aug 2018 12:44:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fqhrn-0001Mx-9h for help-guix@gnu.org; Fri, 17 Aug 2018 12:44:54 -0400 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]:44250) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fqhrn-0001MZ-0L for help-guix@gnu.org; Fri, 17 Aug 2018 12:44:51 -0400 Received: by mail-wr1-x432.google.com with SMTP id r16-v6so7593216wrt.11 for ; Fri, 17 Aug 2018 09:44:50 -0700 (PDT) In-reply-to: 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: Arun Isaac Cc: help-guix@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable I do exactly what you suggested: =2D-8<---------------cut here---------------start------------->8--- (defun ambrevar/init-guix () (and buffer-file-name (string-match "\\" buffer-file-name) ; Adapt this to your in= stall. (guix-devel-mode))) (add-hook 'scheme-mode-hook 'ambrevar/init-guix) =2D-8<---------------cut here---------------end--------------->8--- A better approach might be to add it to .dir-locals.el upstream. What do y= ou people think? =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAlt2+38ACgkQm9z0l6S7 zH9xmQf9Hw77FwU0vflDFfbtJ0yVHFV31UtB9GQyVgGXXQ2ESDPC9Hh3xJn4Eq0H CtRyLtVNVmx+RaYN36cNstPbQTyaxVW4lxfAJjM6D0857DVC3ETcSIMrHyYz+g7c dyynCQPC/AxAyG5gRvfcLnjqwAWV+q5si02OJ9cGdbGpb6Et9/U0v9AJlus58ivt 4ojmUwcpE+qoSPFCvOR7vdYj0bitS4xMNXbOMBeRZkOj3tjeBMeLQUB8iMZbIN2x SDLXbtcXHlpKkJLu58uWLqbFYooCnFYeqEXSve+SYC8LuZpj9+yow3i6bAHrqLts 1Cwpwg7zzobuTPu1hplssvoYlJ6TfQ== =y/lH -----END PGP SIGNATURE----- --=-=-=--