Lhooq
Lhooq

Reputation: 4441

tuareg-mode customization for emacs

Since I installed the last tuareg package (2.0.10), some things really annoy me and I can't find how to change them back to their previous setup :

let print_enum = 
  let c = ref 0 in
  fun f ->
  List.iter (fun e a
                 b c ->
    ) l

Here I'd like to have :

let print_enum = 
  let c = ref 0 in
  fun f ->
    List.iter (fun e a
      b c ->
    ) l

I couldn't find the indentation for fun f -> nor for

fun_app a b
  c d

in the customization menu.

Upvotes: 0

Views: 262

Answers (1)

Trung Ta
Trung Ta

Reputation: 1722

I suggest to use ocp-indent instead of the built-in indentation of tuareg:

Indentation customization can be very intuitively. You can check out the sample configuration file for ocp-indent: https://github.com/OCamlPro/ocp-indent/blob/master/.ocp-indent

Upvotes: 1

Related Questions