From: Andreas Enge <andreas@enge.fr>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: guix-devel@gnu.org
Subject: Re: Code formatting
Date: Sun, 11 Sep 2016 18:35:38 +0200 [thread overview]
Message-ID: <20160911163538.GH746@solar> (raw)
In-Reply-To: <874m76845l.fsf@gnu.org>
On Sun, Jul 31, 2016 at 12:59:02PM +0200, Ludovic Courtès wrote:
> Danny Milosavljevic <dannym@scratchpost.org> skribis:
> >> Bonus to whoever posts indentation rules for their favorite editor! :-)
> > Is there a standalone program that reformats Scheme code to what we want it to be?
> There’s Emacs, which can be invoked for batch processing. I’m not sure
> what the right incantation is.
>
> Though to me, it sounds more productive to have $EDITOR do the right
> thing.
Well, that would be optimal, but there are so many editors in the wild...
So I still think it would be good to have a batch processor, or at least
a recipe for non-emacs users on which keys to press to obtain correct
indentation, like so (from my vague memory of emacs):
run "emacs module.scm"
press "n" or "arrow down" until you arrive on the package recipe
alternate "tab" and "n" until you arrive at the end of the recipe
press "ctrl-x ctrl-somethingelse"
Also, it might be good to do one commit that fixes all indentations,
since I tend to copy wrongly indented code (from my own and other people's
recipes).
Andreas
next prev parent reply other threads:[~2016-09-11 16:35 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-29 8:23 [PATCH 1/8] gnu: qt: Update to 5.6.1-1 David Craven
2016-07-29 8:23 ` [PATCH 2/8] gnu: Use define-public to export packages David Craven
2016-07-29 15:35 ` Ludovic Courtès
2016-07-29 8:23 ` [PATCH 3/8] gnu: Remove trailing periods from synopsis David Craven
2016-07-29 15:38 ` Ludovic Courtès
2016-07-29 8:23 ` [PATCH 4/8] gnu: freedesktop: Add libinput-minimal David Craven
2016-07-29 11:25 ` Vincent Legoll
2016-07-29 12:53 ` David Craven
2016-07-29 13:13 ` Vincent Legoll
2016-07-29 15:40 ` Ludovic Courtès
2016-07-29 8:23 ` [PATCH 5/8] gnu: xorg: Add xf86-video-qxl David Craven
2016-07-29 15:42 ` Ludovic Courtès
2016-07-29 8:23 ` [PATCH 6/8] gnu: Order module imports in (gnu packages qemu) alphabetically David Craven
2016-07-29 15:44 ` Ludovic Courtès
2016-07-29 16:26 ` David Craven
2016-07-29 8:23 ` [PATCH 7/8] gnu: qemu: Enable spice support David Craven
2016-07-29 19:10 ` Ludovic Courtès
2016-07-29 19:12 ` David Craven
2016-07-30 12:47 ` Ludovic Courtès
2016-07-29 8:23 ` [PATCH 8/8] services: Add spice vdagent service David Craven
2016-07-29 19:16 ` Ludovic Courtès
2016-07-29 19:20 ` David Craven
2016-07-30 10:29 ` David Craven
2016-07-30 22:41 ` Ludovic Courtès
2016-07-31 18:14 ` David Craven
2016-08-01 12:01 ` Ludovic Courtès
2016-07-29 19:20 ` [PATCH 1/8] gnu: qt: Update to 5.6.1-1 Ludovic Courtès
2016-07-29 19:23 ` David Craven
2016-07-30 8:57 ` Andreas Enge
2016-07-30 22:44 ` Code formatting Ludovic Courtès
2016-07-31 10:34 ` Danny Milosavljevic
2016-07-31 10:37 ` Andreas Enge
2016-07-31 10:59 ` Ludovic Courtès
2016-09-11 16:35 ` Andreas Enge [this message]
[not found] ` <20160729101510.GA30683@solar>
[not found] ` <CAL1_im=qJ3=0P=c6OhL9wW2rz4wJY3cFubute0dHWyr5ymjhsA@mail.gmail.com>
[not found] ` <CAL1_im=EbMqBufpsW2eMxYZdLWVDtmq4TD1HDKvAQ_u_RpdjXw@mail.gmail.com>
[not found] ` <20160729180053.GA1301@solar>
2016-07-30 8:53 ` [PATCH 1/8] gnu: qt: Update to 5.6.1-1 Andreas Enge
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160911163538.GH746@solar \
--to=andreas@enge.fr \
--cc=guix-devel@gnu.org \
--cc=ludo@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.