From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id 715D37F20B for ; Fri, 8 Feb 2013 16:25:32 +0100 (CET) Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of louis.gesbert@ocamlpro.com) identity=pra; client-ip=212.227.126.187; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="louis.gesbert@ocamlpro.com"; x-sender="louis.gesbert@ocamlpro.com"; x-conformance=sidf_compatible Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of louis.gesbert@ocamlpro.com) identity=mailfrom; client-ip=212.227.126.187; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="louis.gesbert@ocamlpro.com"; x-sender="louis.gesbert@ocamlpro.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of postmaster@moutng.kundenserver.de designates 212.227.126.187 as permitted sender) identity=helo; client-ip=212.227.126.187; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="louis.gesbert@ocamlpro.com"; x-sender="postmaster@moutng.kundenserver.de"; x-conformance=sidf_compatible; x-record-type="v=spf1" X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtQIADUYFVHU4367k2dsb2JhbABFrVGTQRYOAQEBAQcLCwkUAySCYIolCJ8loROIc4VAgykDl0GSNg X-IPAS-Result: AtQIADUYFVHU4367k2dsb2JhbABFrVGTQRYOAQEBAQcLCwkUAySCYIolCJ8loROIc4VAgykDl0GSNg X-IronPort-AV: E=Sophos;i="4.84,630,1355094000"; d="scan'208";a="1566410" Received: from moutng.kundenserver.de ([212.227.126.187]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/RC4-SHA; 08 Feb 2013 16:17:47 +0100 Received: from agaric.localnet (jua06-3-88-189-115-104.fbx.proxad.net [88.189.115.104]) by mrelayeu.kundenserver.de (node=mrbap2) with ESMTP (Nemesis) id 0M3dNR-1UuYyQ23FZ-00qxcr; Fri, 08 Feb 2013 16:25:31 +0100 From: Louis Gesbert Organization: OCamlPro To: caml-list@inria.fr Date: Fri, 8 Feb 2013 16:25:29 +0100 User-Agent: KMail/1.13.7 (Linux/3.2.0-4-amd64; KDE/4.8.4; x86_64; ; ) MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201302081625.29881.louis.gesbert@ocamlpro.com> X-Provags-ID: V02:K0:t3BM8xF3CrfaN2tSXZH1FTu7/V1BD56ilQfc6prob7V oT4iZw+6KzSB35r9P5JnHiQiyGbBFGzpFpemJ3c2quOoyO+06h IY1q7jTsL9cpEQfxiwV8c2+2/ETme+Jtx8qu5M5HVIi/Wmj4C7 PLkUFePFxcgU7Ys1WCv0S3AvlUl/jEuNrbYI9BJywulrdiJlyv OfVuRSjvq40jKfM2RRDR71nIfZ8pCKaDN5sULVDi+7fOf6pSCm NO2+FwoZmUWqhNuZ8bKeaPOoNOSPiNfGZAAEJj3Leg8DzNTVNt YLtljNm97K2KvYOLe+u9X6C7Z1nHi00ggE0DPsuzexDYQQLTyg Mz9brTOGoW/W5Lnf1MtQ5xr9Vt0bIlYbsNkPNvLNwD5FziaZ9R P9Rl3nUpCiZpg== X-Validation-by: louis.gesbert@ocamlpro.com Subject: [Caml-list] ocp-indent beta release OCamlPro is proud to announce the beta-release of ocp-indent. Ocp-indent is a simple tool, entirely written in OCaml, which sole purpose is to indent OCaml code. It can plug-in seamlessly into emacs' tuareg mode, or be run from vim. You can try it now with: $ opam install ocp-indent $ INSTDIR="$(opam config var prefix)/share/typerex/ocp-indent" $ echo '(load-file "'"$INSTDIR/ocp-indent.el"'")' >>~/.emacs $ echo 'autocmd FileType ocaml source '"$INSTDIR"'/ocp-indent.vim' >>~/.vimrc Or check it out at https://github.com/OCamlPro/ocp-indent It presents many improvements over the tuareg indentation engine, a much better understanding of the syntax, linear complexity, specific handling for many cases. Also, it was intentionally provided with much less customisation options. Feel free to submit any code snippet that is not indented to your taste, to help us improve ocp-indent further. Some comparison with tuareg on a few big OCaml projects can be seen at http://htmlpreview.github.com/?https://github.com/AltGr/ocp-indent- tests/blob/master/status.html -- Louis Gesbert, OCamlPro