ocp-indent

OCaml indentation tool for emacs and vim - runtime

Install

All systems
curl cmd.cat/ocp-indent.sh
Debian Debian
apt-get install ocp-indent
Ubuntu
apt-get install ocp-indent
image/svg+xml Kali Linux
apt-get install ocp-indent
Windows (WSL2)
sudo apt-get update sudo apt-get install ocp-indent
Raspbian
apt-get install ocp-indent

ocp-indent

OCaml indentation tool for emacs and vim - runtime

ocp-indent is a command-line tool that allows one to indent a whole OCaml source code file (or parts of it) either to standard output or in-place. A configuration file allows user defaults as well as per-project parameters. The ratio of correctly indented lines is comparable with emacs tuareg mode while being an order of magnitude faster. This package includes the runtime binary and the vim and emacs extensions.