On Fri, 23 Dec 2011 11:04:25 +0300
Mihamina Rakotomandimby <[email protected]> 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
> 



-- 
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

Reply via email to