Add opam-switch-mode to  lang: coq and fix configuration of opam-switch-mode in lang: ocaml by jeremyThibault · Pull Request #8132 · doomemacs/doomemacs · GitHub | Latest TMZ Celebrity News & Gossip | Watch TMZ Live
Skip to content

Add opam-switch-mode to  lang: coq and fix configuration of opam-switch-mode in lang: ocaml #8132

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

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

jeremyThibault
Copy link

@jeremyThibault jeremyThibault commented Oct 31, 2024

This PR adds configuration to install and use opam-switch-mode to manage opam switches to the coq module. The configuration is taken almost straight from PR #7806 which added the same capability to the ocaml module. The only difference is that, unlike in the ocaml module, we do not initialize the environment right away.
Incidentally, we need to wrap this initialization inside the ocaml module, or it will try to execute even if tuareg isn't loaded and produce an error.

Note that this is my first PR, and that I am not very familiar with Emacs and use-package, so I'm not very confident that commit bdb4d60 is doing the right thing; at least, it seems to work on my machine.
I'm also not sure if it's fine to use the same package! in two different, non-mutually-exclusive modules.


  • I searched the issue tracker and this hasn't been PRed before.
  • My changes are not on the do-not-PR list for this project.
  • My commits conform to Doom's git conventions.
  • Any relevant issues or PRs have been linked to.

@hlissner hlissner marked this pull request as draft November 1, 2024 01:43
@hlissner hlissner added is:bug Something isn't working as intended is:feature Adds or requests new features, or extends existing ones module:lang/coq Pertains to Doom's :lang coq module module:lang/ocaml Pertains to Doom's :lang ocaml module labels Nov 1, 2024
@hlissner hlissner added this to the modules v24.12 milestone Nov 1, 2024
This fixes an issue where `tuareg-opam-current-compiler` would be
undefined if `opam-switch-mode` was loaded before `tuareg`.
Some Rocq users don't use OPAM, so I add a new flag
that can be used to turn off loading features that
depend on `opam`, such as `opam-switch-mode`.
Some OCaml users don't use OPAM, so I add a new flag
that can be used to turn off loading features that
depend on `opam`, such as `opam-switch-mode`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
is:bug Something isn't working as intended is:feature Adds or requests new features, or extends existing ones module:lang/coq Pertains to Doom's :lang coq module module:lang/ocaml Pertains to Doom's :lang ocaml module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants

TMZ Celebrity News – Breaking Stories, Videos & Gossip

Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.

Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.

🎥 Watch TMZ Live

TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.