all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Huang\, Ying" <huang_ying_caritas@163.com>
To: Alex Kost <alezost@gmail.com>
Cc: help-guix <help-guix@gnu.org>
Subject: Re: Tool to format/indent scheme code
Date: Sun, 05 Mar 2017 20:19:13 +0800	[thread overview]
Message-ID: <87zigzykzi.fsf@163.com> (raw)
In-Reply-To: <87wpc4amml.fsf@gmail.com> (Alex Kost's message of "Sat, 04 Mar 2017 22:05:22 +0300")

Alex Kost <alezost@gmail.com> 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	other threads:[~2017-03-05 12:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-04  5:54 Tool to format/indent scheme code Huang, Ying
2017-03-04 14:18 ` Mekeor Melire
2017-03-04 19:05 ` Alex Kost
2017-03-05 12:19   ` Huang, Ying [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zigzykzi.fsf@163.com \
    --to=huang_ying_caritas@163.com \
    --cc=alezost@gmail.com \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.