formatting

(formatting ...)

Added in version 2.0.

Control automatic formatting. Several forms are accepted:

  • To disable automatic formatting completely (equivalent to the behavior in language 1.x):

    (formatting disabled)
    
  • To restrict the languages that are considered for formatting:

    (formatting
     (enabled_for <languages>))
    

    The list of <languages> can be either dune (formatting of dune files) or a dialect name.