I've started using Emacs for Ocaml programming, and used
opam for installing some Emacs scripts which enable IDE features. To use these, opam added the following line to my .emacs:
(require 'opam-user-setup "~/.emacs.d/opam-user-setup.el")
However, this line makes the Emacs startup super sluggish. I use Emacs for a lot of things, and most of the time do not need this file at all. So I was wondering if there is a way to configure Emacs to require this file just before loading Ocaml files, and not always at startup.