From: Mekeor Melire <mekeor.melire@gmail.com>
To: "Huang, Ying" <huang_ying_caritas@163.com>
Cc: help-guix <help-guix@gnu.org>
Subject: Re: Tool to format/indent scheme code
Date: Sat, 04 Mar 2017 15:18:12 +0100 [thread overview]
Message-ID: <87mvd1jfbv.fsf@gmail.com> (raw)
In-Reply-To: <878tolwprw.fsf@163.com>
Huang, Ying <huang_ying_caritas@163.com> writes:
> 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 Guix' Git-repository, there is a file `etc/indent-code.el.in`. I
think, after running `./bootstrap`, it becomes `etc/indent-code.el` which
is then executable. I guess, it requires emacs being installed though.
You can then run `./etc/indent-code.el gnu/packages/foo.scm` or so.
I'm not sure if `indent-code.el` is only made for package definitions
(like gnu/packages/foo.scm) or if it also works for other Scheme code.
Maybe try it? Maybe somebody else knows? Maybe read the code?
I'm not sure if I was helpful.
--
mekeor ~ EDD3 DFFA 76F6 11C0 145F 9A99 AC85 BAD8 A2F8 C868
next prev parent reply other threads:[~2017-03-04 14:18 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 [this message]
2017-03-04 19:05 ` Alex Kost
2017-03-05 12:19 ` Huang, Ying
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87mvd1jfbv.fsf@gmail.com \
--to=mekeor.melire@gmail.com \
--cc=help-guix@gnu.org \
--cc=huang_ying_caritas@163.com \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).