From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id KAA13259; Wed, 2 Jun 2004 10:35:38 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id KAA13898 for ; Wed, 2 Jun 2004 10:35:37 +0200 (MET DST) Received: from aomori.annexia.org (annexia.force9.co.uk [212.56.101.183]) by nez-perce.inria.fr (8.12.10/8.12.10) with ESMTP id i528ZaEV015217 for ; Wed, 2 Jun 2004 10:35:36 +0200 Received: from rich by aomori.annexia.org with local (Exim 3.36 #1 (Debian)) id 1BVRDh-0008MG-00; Wed, 02 Jun 2004 09:35:33 +0100 Date: Wed, 2 Jun 2004 09:35:33 +0100 To: John Goerzen Cc: caml-list@inria.fr Subject: Re: [Caml-list] Strange syntax behavior Message-ID: <20040602083533.GA32058@redhat.com> References: <20040601171354.GA16495@excelhustler.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040601171354.GA16495@excelhustler.com> User-Agent: Mutt/1.5.5.1+cvs20040105i From: Richard Jones X-Miltered: at nez-perce with ID 40BD9158.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 indenting:01 setq:01 tuareg:01 camldebug:01 debugger:01 setq:01 indentation:01 ltd:98 caml:01 caml:01 emacs:01 syntax:02 logical:02 arch:02 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk [Question already adequately answered by everyone else. Just to add ...] I use tuareg-mode in emacs, with the configuration below. It does a pretty good job of indenting code to show the logical structure. (setq auto-mode-alist (cons '("\\.ml\\w?" . tuareg-mode) auto-mode-alist)) (autoload 'tuareg-mode "tuareg" "Major mode for editing Caml code" t) (autoload 'camldebug "camldebug" "Run the Caml debugger" t) (if (and (boundp 'window-system) window-system) (require 'font-lock)) (add-hook 'tuareg-mode-hook '(lambda () (setq tuareg-in-indent 0) ; no indentation after `in' keywords )) Rich. -- Richard Jones. http://www.annexia.org/ http://www.j-london.com/ Merjis Ltd. http://www.merjis.com/ - improving website return on investment MONOLITH is an advanced framework for writing web applications in C, easier than using Perl & Java, much faster and smaller, reusable widget-based arch, database-backed, discussion, chat, calendaring: http://www.annexia.org/freeware/monolith/ ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners