when I can program, I’m mainly using OCaml on Linux with Spacemacs as an editor (and more).
But I often have to switch to a windows virtual machine in order to compile before delivering my work to co-workers.
On this platform, I installed OCaml with the excellent OCaml for Windows.
But I was not able to install and configure correctly Spacemacs with everything working. By instance, I can’t have Merlin work as expected. This is bad, because I would sometime need to do serious job without switching back to Linux.
Does anybody have some simple instruction to help me (and certainly others) towards this? Which version of emacs are you using? How to you configure it? Does your configuration adapt automatically when switching in OPAM?
Start “runemacs.exe” through ocaml-env-win (https://fdopen.github.io/opam-repository-mingw/ocaml-env/). You can create a shortcut from within cygwin, e.g. on your desktop: mkshortcut -a /cygdrive/c/path-to-emacs/bin/runemacs.exe -D /usr/local/bin/ocaml-env-win -n Emacs -w "$HOME" -i /cygdrive/c/path-to-emacs/bin/runemacs.exe
enable melpa repository and install dependencies (company-mode,…)
opam install merlin and add the suggested code to your ~/.emacs file