help-guix
[Top][All Lists]
Advanced

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

Re: Tool to format/indent scheme code


From: Huang\, Ying
Subject: Re: Tool to format/indent scheme code
Date: Sun, 05 Mar 2017 20:19:13 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)

Alex Kost <address@hidden> writes:

> 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.

Thanks a lot!  That is a useful tool.

> 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

This is a very good interface!

Best Regards,
Huang, Ying




reply via email to

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