[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tool to format/indent scheme code

From: Alex Kost
Subject: Re: Tool to format/indent scheme code
Date: Sat, 04 Mar 2017 22:05:22 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]