From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: Re: guix emacs mode Date: Sat, 29 Oct 2016 12:07:45 +0300 Message-ID: <87h97vy13y.fsf@gmail.com> References: <8737jooytm.fsf@we.make.ritual.n0.is> <20161023051408.GC26768@macbook42.flashner.co.il> <87d1ir11gj.fsf@we.make.ritual.n0.is> <8737jgub8g.fsf_-_@we.make.ritual.n0.is> <87h97wdcva.fsf@gmail.com> <87funglqri.fsf@we.make.ritual.n0.is> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34015) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c0PcF-0007YE-Pb for guix-devel@gnu.org; Sat, 29 Oct 2016 05:07:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c0PcC-0003jq-Js for guix-devel@gnu.org; Sat, 29 Oct 2016 05:07:51 -0400 Received: from mail-lf0-x22c.google.com ([2a00:1450:4010:c07::22c]:36755) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c0PcC-0003ji-BH for guix-devel@gnu.org; Sat, 29 Oct 2016 05:07:48 -0400 Received: by mail-lf0-x22c.google.com with SMTP id b75so72310954lfg.3 for ; Sat, 29 Oct 2016 02:07:48 -0700 (PDT) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: ng0 Cc: guix-devel@gnu.org ng0 (2016-10-28 10:19 +0000) wrote: > Alex Kost writes: > >> ng0 (2016-10-28 08:30 +0000) wrote: [...] >>> Different issue, but somehow related: Could we move the emacs >>> specific settings into an emacs mode if emacs modes can detect >>> some common structure or however we specify that the current file >>> which is edited is guix and not guile/scm alone? >> >> Sorry, I don't understand the question. What does =C2=ABmove the emacs >> specific settings into an emacs mode=C2=BB mean? > > I don't understand much, well to be honest: nothing, on how modes > in emacs work. I meant that we maybe could move whatever the > .dir-locals.el sets into some external modules/files/set if > possible at all. Ah, now I see. The purpose of ".dir-locals.el" is to set some variables locally for the current project (the contents of the current directory). I think it doesn't make sense to move dir-locals anywhere, as it is used to set up emacs (to set fill-column, to disable TABs, etc.) when you edit guix code from a git checkout. > It probably works for gentoo .ebuild because > they have a different file extension than bash, but at their core > it is bash (if I don't mix it up right now). The sentence below > looks like this will not work at all for guix. > >> Also there is no difference between some guix ".scm" file and a usual >> guile ".scm" file. --=20 Alex