Skip to content

atom-ocaml/ocaml-indent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ocaml-indent

Use ocp-indent to indent your OCaml code in Atom.

Usage

Each line is indented when a newline is inserted. Manual indenting can be done with the following commands.

Command Description Keybinding (Linux)
ocaml-indent:selection Indent lines containing selection or cursor ctrl-alt-i
ocaml-indent:file Indent file ctrl-alt-f

Configuration

The recommended way to configure ocp-indent is with a .ocp-indent file in the project directory. See ocp-indent --help for more information. Command line arguments can be configured too if desired.

Installation

This package requires language-ocaml and ocp-indent. For autocompletion, linting and other features, ocaml-merlin is recommended.

apm install language-ocaml ocaml-merlin
opam install ocp-indent

About

Auto-indent ocaml in Atom

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •