From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id pBO3mGLU028731 for ; Sat, 24 Dec 2011 04:48:16 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhEFAF1K9U6GoCGiZGdsb2JhbABDhQ+WXJBlGQsLBhUlgXIBAQQBI0sQCwUGGAICBQQdAgIPNhIZEQGHaAimQ5EwgS+CToR4ggSBFgSINYxNkkM X-IronPort-AV: E=Sophos;i="4.71,402,1320620400"; d="scan'208";a="136678659" Received: from postman2.riken.jp (HELO postman.riken.jp) ([134.160.33.162]) by mail1-smtp-roc.national.inria.fr with ESMTP; 24 Dec 2011 04:48:09 +0100 Received: from postman.riken.jp (postman2.riken.jp [127.0.0.1]) by postman.riken.jp (Postfix) with SMTP id E361F12601EF for ; Sat, 24 Dec 2011 12:48:06 +0900 (JST) Received: from postman2.riken.jp (postman2.riken.jp [127.0.0.1]) by postman.riken.jp (Postfix) with ESMTP id C8AA3127007D for ; Sat, 24 Dec 2011 12:48:06 +0900 (JST) Date: Sat, 24 Dec 2011 12:48:06 +0900 From: =?UTF-8?B?RnJhbmNvaXPCocKhQ2hhcmxlcyBNYXR0aGlldcKhwqFCZXJlbmdlcg==?= To: caml-list@inria.fr Message-Id: <1324698486795394.Berenger@riken.jp> In-Reply-To: <4EF43609.6040609@rktmb.org> References: <4EF43609.6040609@rktmb.org> X-Priority: 3 MIME-Version: 1.0 X-Mailer: SYNCDOT/WebMailer Ver2.5 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-PMX-Version: 5.6.0.2009776, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2011.12.22.120618 Subject: Re: [Caml-list] Format OCaml Code On Fri, 23 Dec 2011 11:04:25 +0300 Mihamina Rakotomandimby wrote: > 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. Run emacs in batch mode. I never did it myself but I know it is possible. The script consist of elisp commands I guess. Regards, F. > > -- > RMA. > > -- > Caml-list mailing list. Subscription management and archives: > https://sympa-roc.inria.fr/wws/info/caml-list > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs >