From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Huang\, Ying" Subject: Re: Tool to format/indent scheme code Date: Sun, 05 Mar 2017 20:19:13 +0800 Message-ID: <87zigzykzi.fsf@163.com> References: <878tolwprw.fsf@163.com> <87wpc4amml.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42827) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ckV8U-0001Fm-Lj for help-guix@gnu.org; Sun, 05 Mar 2017 07:19:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ckV8R-0008Ks-Bj for help-guix@gnu.org; Sun, 05 Mar 2017 07:19:38 -0500 Received: from m12-12.163.com ([220.181.12.12]:50609) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ckV8Q-0008Jd-Ew for help-guix@gnu.org; Sun, 05 Mar 2017 07:19:35 -0500 In-Reply-To: <87wpc4amml.fsf@gmail.com> (Alex Kost's message of "Sat, 04 Mar 2017 22:05:22 +0300") List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Alex Kost Cc: help-guix Alex Kost 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