Variable: tuareg-opam-insinuate
tuareg-opam-insinuate is a customizable variable defined in
tuareg-opam.el.
Value
nil
Documentation
By default, Tuareg will use the environment that Emacs was
launched in. That environment may not contain an OCaml
compiler (say, because Emacs was launched graphically and the
path is set in ~/.bashrc) and will remain unchanged when one
issue an "opam switch" in a shell. If this variable is set to
t, Tuareg will try to use opam to set the right environment for
compile, run-ocaml and merlin-mode based on the current
opam switch at the time the command is run (provided opam is
found). You may also use tuareg-opam-update-env, or the menus
from the ELPA package opam-switch-mode, to set the
environment for another compiler from within emacs (without
affecting the OPAM switches outside of this Emacs session).
Beware that setting it to t causes problems if you compile under tramp.
Source Code
;; Defined in /nix/store/6mbh851dhnag8f92qfrlh9ckldzwf6c6-emacs-packages-deps/share/emacs/site-lisp/elpa/tuareg-20260626.936/tuareg-opam.el
(defcustom tuareg-opam-insinuate nil
"By default, Tuareg will use the environment that Emacs was
launched in. That environment may not contain an OCaml
compiler (say, because Emacs was launched graphically and the
path is set in ~/.bashrc) and will remain unchanged when one
issue an \"opam switch\" in a shell. If this variable is set to
t, Tuareg will try to use opam to set the right environment for
`compile', `run-ocaml' and `merlin-mode' based on the current
opam switch at the time the command is run (provided opam is
found). You may also use `tuareg-opam-update-env', or the menus
from the ELPA package `opam-switch-mode', to set the
environment for another compiler from within emacs (without
affecting the OPAM switches outside of this Emacs session).
Beware that setting it to t causes problems if you compile under tramp."
:group 'tuareg :type 'boolean)