​Good news everyone! ​You no longer need to rewrite Emacs from scratch to ​be able to hack it in OCaml. You can now use Ecaml, a library for writing Emacs plugin in OCaml: https://github.com/janestreet/ecaml It is using the new Emacs 25 support for loading dynamic modules ​.​ ​ We successfully used it to run ​Async code as well as expectation tests inside Emacs. ​Y​ ou can install ​Ecaml​ using our development opam repository: opam ​repo add janestreet https://github.com/janestreet/opam-repository.git opam ​install ecaml ​Enjoy!​ -- ​ ​ Jeremie ​ Dimino, for the Core team​