On Sun, Jul 31, 2016 at 12:59:02PM +0200, Ludovic Courtès wrote: > Danny Milosavljevic <dan...@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