From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id pBN84gga032533 for ; Fri, 23 Dec 2011 09:04:42 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Au8CAKQ09E7ZRrfDmWdsb2JhbABEhQ+VSIYlgTiHKIJXIgEBAQEBCAsLBxQlgToeDQEMAQEFIxVAEQsYAgIFFgsCAgkDAgECAUUTCAEBhUQBAYIypVGRTIEvh0aCBIEWBIgxjFCFT4Z1hXE X-IronPort-AV: E=Sophos;i="4.71,398,1320620400"; d="scan'208";a="124415862" Received: from relay3-d.mail.gandi.net ([217.70.183.195]) by mail4-smtp-sop.national.inria.fr with ESMTP; 23 Dec 2011 09:04:37 +0100 X-Originating-IP: 217.70.178.145 Received: from mfilter17-d.gandi.net (mfilter17-d.gandi.net [217.70.178.145]) by relay3-d.mail.gandi.net (Postfix) with ESMTP id 2DE55A807E for ; Fri, 23 Dec 2011 09:04:37 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mfilter17-d.gandi.net Received: from relay3-d.mail.gandi.net ([217.70.183.195]) by mfilter17-d.gandi.net (mfilter17-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id VYI+ie6qCS1m for ; Fri, 23 Dec 2011 09:04:35 +0100 (CET) X-Originating-IP: 41.190.237.66 Received: from [192.168.0.111] (unknown [41.190.237.66]) (Authenticated sender: out@rktmb.org) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 3FD1FA807F for ; Fri, 23 Dec 2011 09:04:34 +0100 (CET) Message-ID: <4EF43609.6040609@rktmb.org> Date: Fri, 23 Dec 2011 11:04:25 +0300 From: Mihamina Rakotomandimby User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111124 Thunderbird/8.0 MIME-Version: 1.0 To: caml-list@inria.fr References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Caml-list] Format OCaml Code On 12/23/2011 10:57 AM, haihao shen wrote: > Hi All, > > Does anyone know whether there is some tools or scripts to format ocaml > code in a unified format? If you mean having a "good" indentation, opening it in Emacs+tuareg-mode then indenting will work fine. Note that it's a file by file way and it doesn not split uselessly long lines to shorter ones: just indentation. Or I dont know how to fully use tuareg-mode ;-). For a large set of files, I don't know how to ease the work. -- RMA.