Huang, Ying (2017-03-04 13:54 +0800) wrote: > Hi, All, > > Sometimes, I want to check the contents of auto-generated scheme code in > store. But the readability is not very good. So I want to use a code > format/indent tool to help on this. Do you know is there such tool in > Guix? If no, any tool not in Guix? Thanks in advance!
In Emacs you can use "C-u M-x indent-pp-sexp" to pretty print a sexp after the point. BTW, if anyone is interested, Emacs-Guix uses 'indent-pp-sexp' to pretty-print Shepherd config of a system generation, which can be shown like this: 1. Run "M-x guix-system-generations" 2. Press "RET" on any generation to get more info 3. Press "Pretty print" button -- Alex