Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggest using XDG convention to locate the ocaml init file #40

Open
MisterDA opened this issue Jan 15, 2025 · 2 comments
Open

Suggest using XDG convention to locate the ocaml init file #40

MisterDA opened this issue Jan 15, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@MisterDA
Copy link

The README suggests using ~/.ocamlinit, but since OCaml 4.10 the toplevel adheres to the XDG convention (thanks!). The README and the opam package description should reflect that. Opam files also have a post-message field which could be used to prompt the user to add the configuration to the init file.

@dbuenzli dbuenzli added the enhancement New feature or request label Jan 15, 2025
@MisterDA
Copy link
Author

The post-install message could also advise to install ocp-index. This would prevent an error later raised:

Error: Completion and doc lookup needs ocp-index. Try 'opam install ocp-index'.

@nojb
Copy link
Contributor

nojb commented Jan 15, 2025

The post-install message could also advise to install ocp-index. This would prevent an error later raised:

Error: Completion and doc lookup needs ocp-index. Try 'opam install ocp-index'.

Incidentally, if you are trying ocp-index I think OCamlPro/ocp-index#170 will be useful (unfortunately, left unmerged by the maintainers).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants