The above installation step copies elisp and vim scripts to /share/typerex/ocp-indent/. You then need to load them in the editor of your choice to automatically use ocp-indent.
However, after install ocp-indent from opam, the file:
$(opam config var prefix)"/share/typerex/ocp-indent/ocp-indent.el"
does not exist. It should be instead:
$(opam config var prefix)"/share/emacs/site-lisp/ocp-indent.el"
Hi
in the webpage https://www.typerex.org/ocp-indent.html it is indicated:
However, after install ocp-indent from opam, the file: $(opam config var prefix)"/share/typerex/ocp-indent/ocp-indent.el" does not exist. It should be instead: $(opam config var prefix)"/share/emacs/site-lisp/ocp-indent.el"