Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] q
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Kamil Shakirov <kamils@n...>
Subject: Re: [Caml-list] Tuareg
Hello Christophe,

Christophe TROESTLER <ipcastillon@prodigy.net.mx> writes:

>> let complex_function arg1 arg2 ... =
>>   let fun_aux1 arg1 arg2 ... =        
>>     bla bla bla
>>   in
>> [...]
>>   fun_aux3 arg2
>>     (fun_aux2 (fun_aux arg1 arg2) arg1)
>
> Include in your ~/.emacs the following :
>
>       (add-hook 'tuareg-mode-hook
>        (function
>         (lambda ()
>           (setq tuareg-in-indent 0)
>           (setq tuareg-let-always-indent t)
>           (setq tuareg-let-indent 2)
>           (setq tuareg-with-indent 0)
>           (setq tuareg-function-indent 0)
>           (setq tuareg-fun-indent 0)
>           (setq tuareg-parse-indent 0)
>           (setq tuareg-parser-indent 0)
>           (setq tuareg-match-indent 0)
>           (setq tuareg-begin-indent 2)
>          )))

I meant `folding' --- hiding parts of the edited program. Probably you
did not understand me because my english is not good. ;)

Anyway, thank you for your answer.

I have found similar minor edit mode (hideshow.el, hs-minor-mode for
block hiding and showing) but it is for the c-mode. It would be nice
to implement this in the tuareg mode.

> Happy new year!

Thanks. Same to you. ;)

-- 
 Kamil.

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