[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Code formatting
From: |
Ludovic Courtès |
Subject: |
Code formatting |
Date: |
Sun, 31 Jul 2016 00:44:26 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
Andreas Enge <address@hidden> skribis:
> On Fri, Jul 29, 2016 at 09:20:48PM +0200, Ludovic Courtès wrote:
>> > + (modify-phases %standard-phases
>> > + (add-after 'configure 'patch-bin-sh
>> > + (lambda _
>> > + (substitute* '("qtbase/config.status"
>> > + "qtbase/configure"
>> > + "qtbase/mkspecs/features/qt_functions.prf"
>> > + "qtbase/qmake/library/qmakebuiltins.cpp")
>> > + (("/bin/sh") (which "sh")))
>> ^
>> This should be aligned with the ‘u’ of ‘substitute*’.
>
> I need indentation help again! I thought we either indented like this:
>
> (function 1
> 2
> 3)
Good.
> with the first argument following the procedure name; or like this:
>
> (function
> 1
> 2
> 3)
> with the first argument on the next line.
Works as well, but aligned with ‘f’; the first option is preferred.
> So I misunderstood, and it is actually
> (function 1
> 2
> 3)
> in the first case?
Bad.
See
<https://www.gnu.org/software/guix/manual/html_node/Formatting-Code.html>
and the rest of the code base.
Bonus to whoever posts indentation rules for their favorite editor! :-)
Ludo’.
- Re: [PATCH 7/8] gnu: qemu: Enable spice support., (continued)
Re: [PATCH 1/8] gnu: qt: Update to 5.6.1-1., Ludovic Courtès, 2016/07/29
Message not available