Alex Kost <alez...@gmail.com> skribis: > Ludovic Courtès (2015-10-02 15:51 +0300) wrote: > >> Alex Kost <alez...@gmail.com> skribis: >> >>> I thought that most people (except me) agreed that indentation rules >>> should stay in ".dir-locals.el", so I don't see a reason why they also >>> need to be duplicated in "guix-devel.el". >> >> It’s interesting to have them in .dir-locals.el for people who hack Guix >> itself. >> >> But it’s also interesting to have them in guix-devel.el for people who >> maintain, say, their own package collection outside of the Guix repo. > > So here it is. I added indentations only for Guix stuff, as I think > that general Guile things (like 'lambda*' or 'eval-when') shouldn't be > handled by a Guix emacs library. BTW, all of these Guile things will be > highlighted/indented properly by Geiser 0.8 (see [1], [2]).
The future is now! :-) > From a878a1fa51cb8072f7af55309ce457d1425841c6 Mon Sep 17 00:00:00 2001 > From: Alex Kost <alez...@gmail.com> > Date: Mon, 12 Oct 2015 12:06:32 +0300 > Subject: [PATCH] emacs: devel: Add indentation rules. > MIME-Version: 1.0 > Content-Type: text/plain; charset=UTF-8 > Content-Transfer-Encoding: 8bit > > Suggested by Ludovic Courtès <l...@gnu.org>. > > * emacs/guix-devel.el: Add indentation rules for Guix macros/procedures. > (guix-devel-scheme-indent): New macro. > (guix-devel-indent-package): New function. LGTM, thank you! Ludo’.