English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
ocaml-emacs mode with multiline comments
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2006-08-11 (19:01)
From: Christophe TROESTLER <Christophe.Troestler@u...>
Subject: Re: [Caml-list] ocaml-emacs mode with multiline comments
On Fri, 11 Aug 2006, Christopher Kauffman <kauffman@cs.umn.edu> wrote:
> I have experimented a bit with Tuareg-mode, the alternate mode for ocaml 
> editing, and it did solve this, but I prefered the indenting in the 
> default ocaml-mode

This will solve the indenting "problem":

      (add-hook 'tuareg-mode-hook
	(function (lambda ()
	  (setq tuareg-in-indent 0)
	  (setq tuareg-let-always-indent t)
	  (setq tuareg-let-indent tuareg-default-indent)
	  (setq tuareg-with-indent 0)
	  (setq tuareg-function-indent 0)
	  (setq tuareg-fun-indent 0)
	  (setq tuareg-parser-indent 0)
	  (setq tuareg-match-indent 0)
	  (setq tuareg-begin-indent tuareg-default-indent)
	  (setq tuareg-parse-indent tuareg-default-indent); .mll
	  (setq tuareg-rule-indent  tuareg-default-indent)
	  (setq tuareg-font-lock-symbols nil)