Re: Source code formatter?

2021-01-30 Thread Paul Wisehart
On Tue, Jan 12, 2021 at 11:10:23PM +1300, Evan Hanson wrote: > On 2021-01-11 16:53, Vasilij Schneidermann wrote: > > Evan Hanson wrote one: https://git.foldling.org/schematic/ > > I did. I actually forgot about that! But I did, a while ago, and I've > been using it ever since, which I guess means

Re: Source code formatter?

2021-01-13 Thread Paul Wisehart
Thanks for the replies! This gives me some stuff to play with. I know about emacs, and frequently use it just to format code. But I mostly use vi these days. I pipe the buffer thru gofmt for go code, and thru indent for C code. I like this work flow. thanks!, -- Paul

Re: Source code formatter?

2021-01-12 Thread Evan Hanson
Hi Paul, On 2021-01-11 16:53, Vasilij Schneidermann wrote: > Evan Hanson wrote one: https://git.foldling.org/schematic/ I did. I actually forgot about that! But I did, a while ago, and I've been using it ever since, which I guess means it works? You can install the "schematic" egg and try

Re: Source code formatter?

2021-01-11 Thread Vasilij Schneidermann
Hi Paul, Evan Hanson wrote one: https://git.foldling.org/schematic/ I don't use source code formatters though, Emacs does the indentation parts far better than anything else, leaving strategic placement of line breaks to the programmer. Vasilij signature.asc Description: PGP signature

Re: Source code formatter?

2021-01-11 Thread Lassi Kortela
The problem with pretty printer is that it is not designed for source: it does not keep comments and blank lines. +1 Scheme reader that preserves them: - https://github.com/weinholt/laesare Work-in-progress formatters: - https://github.com/paines/scmfmt (uses Chicken pretty printer) -

Re: Source code formatter?

2021-01-11 Thread Théo Cavignac
; I don't know of any dedicated source code formatter for Scheme. Piping > expressions through Chicken's pretty printer[1] can be (ab)used for > this, though. (Credit goes to kooda for showing me this trick) > > [1] https://wiki.call-cc.org/man/5/Module%20(chicken%20pretty-print) > &g

Re: Source code formatter?

2021-01-11 Thread ipcore
I don't know of any dedicated source code formatter for Scheme. Piping expressions through Chicken's pretty printer[1] can be (ab)used for this, though. (Credit goes to kooda for showing me this trick) [1] https://wiki.call-cc.org/man/5/Module%20(chicken%20pretty-print) On 1/11/21 5:36 AM

Source code formatter?

2021-01-10 Thread Paul Wisehart
Hi!, Does anyone use a source code formatter? Which one? thanks!