[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Code formatting
From: |
Andreas Enge |
Subject: |
Re: Code formatting |
Date: |
Sun, 11 Sep 2016 18:35:38 +0200 |
User-agent: |
Mutt/1.7.0 (2016-08-17) |
On Sun, Jul 31, 2016 at 12:59:02PM +0200, Ludovic Courtès wrote:
> Danny Milosavljevic <address@hidden> 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Code formatting,
Andreas Enge <=