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 mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id 451157FACB for ; Tue, 2 Sep 2014 22:20:45 +0200 (CEST) Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of mads379@gmail.com) identity=pra; client-ip=209.85.216.49; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="mads379@gmail.com"; x-sender="mads379@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of mads379@gmail.com designates 209.85.216.49 as permitted sender) identity=mailfrom; client-ip=209.85.216.49; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="mads379@gmail.com"; x-sender="mads379@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-qa0-f49.google.com) identity=helo; client-ip=209.85.216.49; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="mads379@gmail.com"; x-sender="postmaster@mail-qa0-f49.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AmMBAAMmBlTRVdgxm2dsb2JhbABag2BNCgSCeK9miAKNP4dQAYELCBYQAQEBAQEGCwsJFCmEBAEBAwESER0BGx0BAwELBgULAzQCAiEBAREBBQEcBhMiiAsBAwkIDZsMa4srgXKDEIljChknDWaFKgERAQUOjCBygUVkBAeCeYFTBZVfhG2CEIFbikkEgj+ERRgpg0yBSDsvgk8BAQE X-IPAS-Result: AmMBAAMmBlTRVdgxm2dsb2JhbABag2BNCgSCeK9miAKNP4dQAYELCBYQAQEBAQEGCwsJFCmEBAEBAwESER0BGx0BAwELBgULAzQCAiEBAREBBQEcBhMiiAsBAwkIDZsMa4srgXKDEIljChknDWaFKgERAQUOjCBygUVkBAeCeYFTBZVfhG2CEIFbikkEgj+ERRgpg0yBSDsvgk8BAQE X-IronPort-AV: E=Sophos;i="5.04,451,1406584800"; d="scan'208";a="92731069" Received: from mail-qa0-f49.google.com ([209.85.216.49]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-SHA; 02 Sep 2014 22:20:44 +0200 Received: by mail-qa0-f49.google.com with SMTP id s7so2849337qap.22 for ; Tue, 02 Sep 2014 13:20:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=64vAvpgq0PnFAX/I7Y3NqxKFGE30nVG+KmPb2ZoVF0k=; b=rm837Ln+f4g9eIMrrpxGIWqYebJipYONY/EI+mUCq7djp86FaUn4ddKhukn6zrn9go a2H42nFCgMyOGYyB5u3bdGYOAizveQpXbrpjbX3ese87YuW8jq5Mhsh+wRytnftbxWTo t2rSsYZ5z+EJurgw1JXkGTXSM1ELrbKPrNK1AZl1mphW4OCQ+IeqaKo2lw/hFWsDcJ7n ayyuX69Bk0EUbOgzttytaFi8ChPNgMu1tZPirCQIUoX9f4PE34EhjbQQih1nfpMn8Q4r CIuW0sYvpkEPu6KGhZtePZkrH6bl6Z/9Ta2S0AqrXiQsyzSBeN3MjmiZSLY44vyGV8qi bS3g== MIME-Version: 1.0 X-Received: by 10.140.23.40 with SMTP id 37mr34547729qgo.30.1409689242953; Tue, 02 Sep 2014 13:20:42 -0700 (PDT) Received: by 10.140.94.196 with HTTP; Tue, 2 Sep 2014 13:20:42 -0700 (PDT) In-Reply-To: References: Date: Tue, 2 Sep 2014 22:20:42 +0200 Message-ID: From: Mads Jensen To: Xinuo Chen Cc: caml-list@inria.fr Content-Type: multipart/alternative; boundary=001a11c157a091f23605021ada9a Subject: Re: [Caml-list] How to use emacs tuareg mode effectively to manage an OCaml project? --001a11c157a091f23605021ada9a Content-Type: text/plain; charset=UTF-8 Hi Xinuo, I use projectile (https://github.com/bbatsov/projectile) to navigate large projects. It isn't OCaml specific but it works really well IMO. This post contains lots of good tips when using Emacs for OCaml programming: http://chaudhuri.info/misc/osetup/ You definitely also want to checkout UTop and get comfortable using it from Emacs: https://github.com/diml/utop Best of luck, Mads On Tue, Sep 2, 2014 at 10:05 PM, Xinuo Chen wrote: > Hi all > > I am using OCaml for a project with 20 - 50 files inside. Also I am using emacs > + tuareg. > > Syntax highlight is well done by tuareg and generally it is good using > emacs for one file editing. > > However, for the project files, I need to frequently switch between files > together with folders, how can i use emacs as also a project manager such > as eclipse? How can I have a file / project tree there just like Eclipse > does? > > Also how do people manage a huge bunch of files (just like core library or > batteries-included) effectively? It seems emacs is good for single file or > simple project editing, but not good at managing a complex project. > > thanks > Best Regards, > > Xinuo > -- /Mads --001a11c157a091f23605021ada9a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Xinuo,

I use projectile (https://github.com/bbatsov/projectil= e) to navigate large projects. It isn't OCaml specific but it works= really well IMO.

This post contains lots of good tips when using Emacs f= or OCaml programming:=C2=A0h= ttp://chaudhuri.info/misc/osetup/

You definite= ly also want to checkout UTop and get comfortable using it from Emacs:=C2= =A0https://github.com/diml/utop

Best of luck,
Mads

=


On Tue, Sep 2= , 2014 at 10:05 PM, Xinuo Chen <iamindcs@gmail.com> wrote:<= br>
Hi all

<= p style=3D"margin:0px 0px 1em;padding:0px;border:0px;vertical-align:baselin= e;clear:both;color:rgb(0,0,0);font-family:Arial,'Liberation Sans',&= #39;DejaVu Sans',sans-serif;line-height:17.8048000335693px;background-i= mage:initial;background-repeat:initial"> I am using OCaml for a project with 20 - 50 files inside. Also I am using= =C2=A0emacs + tuareg.

Syntax highlight is well done by tuareg and generally it is good using emac= s for one file editing.

However, for the project files, I need to frequently switch between files t= ogether with folders, how can i use emacs as also a project manager such as= eclipse?=C2=A0How can I hav= e a file / project tree there just like Eclipse does?

Also how do people manage a huge bunch of files (just like core library or = batteries-included) effectively? It seems emacs is good for single file or = simple project editing, but not good at managing a complex project.

thanks

Best Regards,

Xinuo



--
/Mads
--001a11c157a091f23605021ada9a--