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-file
function in thecaml-types.el
file in your ocaml installation.This is the function that searches for
.annot
files. You can probably edit it to replace the"_build"
(which is whereocamlbuild
puts the generated files) withobj
and be done with that.A much better option is to define a variable in your
.emacs.el
, and use it in thecaml-types.el
file. this way, you could even propose the patch to the ocaml people.