Is there anyway to specify the path to the annot files when using tuareg-mode in emacs? I am trying to find out the type for my functions and the mode complains with "not annotation file".
My build structure is:
lib
obj
*.o
*.cmi
*.cmx
*.annot
src
*.ml
*.mli
I don't think you can easily configure this: have a look at the
caml-types-locate-type-filefunction in thecaml-types.elfile in your ocaml installation.This is the function that searches for
.annotfiles. You can probably edit it to replace the"_build"(which is whereocamlbuildputs the generated files) withobjand be done with that.A much better option is to define a variable in your
.emacs.el, and use it in thecaml-types.elfile. this way, you could even propose the patch to the ocaml people.