简体   繁体   中英

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM