Code folding in Emacs

Hi everybody,

I would be grateful to any tips to how to fold code in Emacs. Currently, I use merlin and tuareg mode and I really miss the code folding.

Any advise would be greatly appreciated :slight_smile:

There are several minor modes that will do this, yafolding for instance, but I’ve never tried using them with Tuareg mode. I suspect with some hacking you can get one of them to work right.

So, nothing specific :slight_smile:
Thanks anyway.

The people of JSC seem to use hs-minor-mode, if I understand this part of base documentation properly

https://github.com/janestreet/base/blob/master/README.org#base-and-ppx-code-generators