Install the following opam packages:
opam install caml-mode merlin ocp-indent
Tweak your .emacs file with some or all of the following:
; shift tab to complete
(global-set-key (kbd "S-<tab>") 'company-complete)
Install the following opam packages:
opam install caml-mode merlin ocp-indent
Tweak your .emacs file with some or all of the following:
; shift tab to complete
(global-set-key (kbd "S-<tab>") 'company-complete)
| (*---------------------------------------------------------------------------- | |
| Copyright (c) 2009, Daniel C. Bünzli. All rights reserved. | |
| Distributed under a BSD license, see license at the end of the file. | |
| ----------------------------------------------------------------------------*) | |
| let str = Printf.sprintf | |
| let exec = Filename.basename Sys.executable_name | |
| let pr = Format.printf | |
| let pr_err s = Printf.eprintf "%s:%s\n" exec s |
Since 4.06 we have UTF-X encoding support via the Buffer module. The
following is a proposal to add UTF-X decoding (and bytes encoding)
support with the following goals:
bytes. This API
provides all the information needed to implement loops for making
higher-level UTF-X codec APIs (e.g. Uutf's folding functions)
operating on bytes and string values. It's not geared towards the end-user| opam-version: "2.0" | |
| synopsis: "Build setenv" | |
| maintainer: "Daniel Bünzli <daniel.buenzl i@erratique.ch>" | |
| setenv: [[BLA += "BLA"]] | |
| authors:[] | |
| build:[[ "env" ]] |
| opam-version: "2.0" | |
| synopsis: "Build environment" | |
| maintainer: "Daniel Bünzli <daniel.buenzl i@erratique.ch>" | |
| authors:[] | |
| build:[[ "env" ]] |
| # Download vagrant box for Windows 10 from: | |
| # | |
| # https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/ | |
| # | |
| # Unzip and add with: | |
| # | |
| # vagrant box add --name win10 MSEdge\ -\ Win10.box | |
| # | |
| # During the first `vagrant up` need to connect to vm UI to do this: | |
| # |
The first point for me is that we should as much as possible get to a system where the following basic sequences of steps are possible.
opam switch create bla # Create switch
opam install non-ocaml-pkg # Doesn't depend on ocaml
opam install ocaml.V.VV.V+variant
or
| (* See http://erratique.ch/software/uutf/doc/Uutf.String.UTF_8.html | |
| If you want to test the API use: | |
| opam pin add uutf https://github.com/dbuenzli/uutf.git#string-utf-8 *) | |
| (** UTF-8 encoded strings. | |
| The [UTF_8] module provides a {{!t}datatype} that asserts | |
| that a string value is valid UTF-8 and a few functions |
This has been integrated in the README of ocaml-depext.
See https://github.com/ocaml/opam-depext/blob/master/README.md
With these instructions you can try 2.0.0 for your day to day work but quickly and safely go back to 1.2.2 if you hit a wall. This maintains both setup entirely isolated.
Going to 2.0.0 for the first time:
> mv ~/.opam ~/.opam-v1 # Save your old setup, use cp -r if you want