* [Caml-list] tuareg and first-class modules
@ 2011-04-14 10:46 Joel Reymont
2011-04-19 23:17 ` Ashish Agarwal
0 siblings, 1 reply; 6+ messages in thread
From: Joel Reymont @ 2011-04-14 10:46 UTC (permalink / raw)
To: caml-list
Is there an update to Tuareg mode for first-class modules?
I would like this
let open Name in
let open Registering in
to be this, for example
let open Name in
let open Registering in
--------------------------------------------------------------------------
- for hire: mac osx device driver ninja, kernel extensions and usb drivers
---------------------+------------+---------------------------------------
http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont
---------------------+------------+---------------------------------------
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Caml-list] tuareg and first-class modules
2011-04-14 10:46 [Caml-list] tuareg and first-class modules Joel Reymont
@ 2011-04-19 23:17 ` Ashish Agarwal
2011-04-20 7:30 ` Joel Reymont
0 siblings, 1 reply; 6+ messages in thread
From: Ashish Agarwal @ 2011-04-19 23:17 UTC (permalink / raw)
To: Joel Reymont; +Cc: caml-list
[-- Attachment #1: Type: text/plain, Size: 1132 bytes --]
I have always used:
(setq tuareg-in-indent 0)
as described in the custom-tuareg.el file included with tuareg. This does
what you want, but then will do it for all lines after 'in', which maybe you
don't want.
On Thu, Apr 14, 2011 at 6:46 AM, Joel Reymont <joelr1@gmail.com> wrote:
> Is there an update to Tuareg mode for first-class modules?
>
> I would like this
>
> let open Name in
> let open Registering in
>
> to be this, for example
>
> let open Name in
> let open Registering in
>
> --------------------------------------------------------------------------
> - for hire: mac osx device driver ninja, kernel extensions and usb drivers
> ---------------------+------------+---------------------------------------
> http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont
> ---------------------+------------+---------------------------------------
>
>
>
>
> --
> Caml-list mailing list. Subscription management and archives:
> https://sympa-roc.inria.fr/wws/info/caml-list
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
>
>
[-- Attachment #2: Type: text/html, Size: 1964 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Caml-list] tuareg and first-class modules
2011-04-19 23:17 ` Ashish Agarwal
@ 2011-04-20 7:30 ` Joel Reymont
2011-04-20 13:45 ` Ashish Agarwal
0 siblings, 1 reply; 6+ messages in thread
From: Joel Reymont @ 2011-04-20 7:30 UTC (permalink / raw)
To: Ashish Agarwal; +Cc: caml-list
On Apr 20, 2011, at 12:17 AM, Ashish Agarwal wrote:
> I have always used:
>
> (setq tuareg-in-indent 0)
Doesn't seem to do the trick, e.g. still
let _ =
let foo = 1 in
let open Foo in
let bar = 2 in
--------------------------------------------------------------------------
- for hire: mac osx device driver ninja, kernel extensions and usb drivers
---------------------+------------+---------------------------------------
http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont
---------------------+------------+---------------------------------------
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Caml-list] tuareg and first-class modules
2011-04-20 7:30 ` Joel Reymont
@ 2011-04-20 13:45 ` Ashish Agarwal
2011-04-20 15:53 ` Joel Reymont
0 siblings, 1 reply; 6+ messages in thread
From: Ashish Agarwal @ 2011-04-20 13:45 UTC (permalink / raw)
To: Joel Reymont; +Cc: caml-list
[-- Attachment #1: Type: text/plain, Size: 834 bytes --]
Your example indents correctly for me. I'm using tuareg 1.46.2 and tried on
both emacs 23.2 on a Mac, and emacs 21.4.1 on RHEL.
On Wed, Apr 20, 2011 at 3:30 AM, Joel Reymont <joelr1@gmail.com> wrote:
>
> On Apr 20, 2011, at 12:17 AM, Ashish Agarwal wrote:
>
> > I have always used:
> >
> > (setq tuareg-in-indent 0)
>
> Doesn't seem to do the trick, e.g. still
>
> let _ =
> let foo = 1 in
> let open Foo in
> let bar = 2 in
>
> --------------------------------------------------------------------------
> - for hire: mac osx device driver ninja, kernel extensions and usb drivers
> ---------------------+------------+---------------------------------------
> http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont
> ---------------------+------------+---------------------------------------
>
>
>
>
[-- Attachment #2: Type: text/html, Size: 1354 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Caml-list] tuareg and first-class modules
2011-04-20 13:45 ` Ashish Agarwal
@ 2011-04-20 15:53 ` Joel Reymont
2011-04-20 19:38 ` Ashish Agarwal
0 siblings, 1 reply; 6+ messages in thread
From: Joel Reymont @ 2011-04-20 15:53 UTC (permalink / raw)
To: Ashish Agarwal; +Cc: caml-list
On Apr 20, 2011, at 2:45 PM, Ashish Agarwal wrote:
> Your example indents correctly for me. I'm using tuareg 1.46.2 and tried on both emacs 23.2 on a Mac, and emacs 21.4.1 on RHEL.
I'm using tuareg 2.0.4 from ocamlforge and it doesn't.
--------------------------------------------------------------------------
- for hire: mac osx device driver ninja, kernel extensions and usb drivers
---------------------+------------+---------------------------------------
http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont
---------------------+------------+---------------------------------------
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Caml-list] tuareg and first-class modules
2011-04-20 15:53 ` Joel Reymont
@ 2011-04-20 19:38 ` Ashish Agarwal
0 siblings, 0 replies; 6+ messages in thread
From: Ashish Agarwal @ 2011-04-20 19:38 UTC (permalink / raw)
To: Joel Reymont; +Cc: caml-list
[-- Attachment #1: Type: text/plain, Size: 801 bytes --]
Confirmed. I just upgraded to 2.0.4, and now I get the same indentation as
you.
On Wed, Apr 20, 2011 at 11:53 AM, Joel Reymont <joelr1@gmail.com> wrote:
>
> On Apr 20, 2011, at 2:45 PM, Ashish Agarwal wrote:
>
> > Your example indents correctly for me. I'm using tuareg 1.46.2 and tried
> on both emacs 23.2 on a Mac, and emacs 21.4.1 on RHEL.
>
> I'm using tuareg 2.0.4 from ocamlforge and it doesn't.
>
> --------------------------------------------------------------------------
> - for hire: mac osx device driver ninja, kernel extensions and usb drivers
> ---------------------+------------+---------------------------------------
> http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont
> ---------------------+------------+---------------------------------------
>
>
>
>
[-- Attachment #2: Type: text/html, Size: 1555 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2011-04-20 19:39 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-14 10:46 [Caml-list] tuareg and first-class modules Joel Reymont
2011-04-19 23:17 ` Ashish Agarwal
2011-04-20 7:30 ` Joel Reymont
2011-04-20 13:45 ` Ashish Agarwal
2011-04-20 15:53 ` Joel Reymont
2011-04-20 19:38 ` Ashish Agarwal
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox