···
2
+
maintainer: "defree@gmail.com"
3
+
authors: "The Merlin team"
4
+
homepage: "https://github.com/ocaml/merlin"
5
+
bug-reports: "https://github.com/ocaml/merlin/issues"
6
+
dev-repo: "git+https://github.com/ocaml/merlin.git"
8
+
["dune" "subst"] {pinned}
9
+
["dune" "build" "-p" name "-j" jobs]
10
+
["dune" "runtest" "-p" "merlin,dot-merlin-reader" "-j" "1"] {with-test & ocaml:version >= "4.03"}
13
+
"ocaml" {>= "4.02.3" & < "4.12"}
15
+
"dot-merlin-reader" {>= "3.4.2"}
16
+
"yojson" {>= "1.6.0"}
17
+
"mdx" {with-test & >= "1.3.0"}
18
+
"conf-jq" {with-test}
19
+
"csexp" {>= "1.2.3"}
26
+
"Editor helper, provides completion, typing and source browsing in Vim and Emacs"
28
+
"Merlin is an assistant for editing OCaml code. It aims to provide the features available in modern IDEs: error reporting, auto completion, source browsing and much more."
34
+
Append this to your .vimrc to add merlin to vim's runtime-path:
35
+
let g:opamshare = substitute(system('opam var share'),'\\n$','','''')
36
+
execute \"set rtp+=\" . g:opamshare . \"/merlin/vim\"
38
+
Also run the following line in vim to index the documentation:
39
+
:execute \"helptags \" . g:opamshare . \"/merlin/vim/doc\"
41
+
Quick setup for EMACS
43
+
Add opam emacs directory to your load-path by appending this to your .emacs:
44
+
(let ((opam-share (ignore-errors (car (process-lines \"opam\" \"config\" \"var\" \"share\")))))
45
+
(when (and opam-share (file-directory-p opam-share))
47
+
(add-to-list 'load-path (expand-file-name \"emacs/site-lisp\" opam-share))
48
+
(autoload 'merlin-mode \"merlin\" nil t nil)
49
+
;; Automatically start it in OCaml buffers
50
+
(add-hook 'tuareg-mode-hook 'merlin-mode t)
51
+
(add-hook 'caml-mode-hook 'merlin-mode t)
52
+
;; Use opam switch to lookup ocamlmerlin binary
53
+
(setq merlin-command 'opam)))
55
+
Take a look at https://github.com/ocaml/merlin for more information
57
+
Quick setup with opam-user-setup
58
+
--------------------------------
60
+
Opam-user-setup support Merlin.
62
+
$ opam user-setup install
64
+
should take care of basic setup.
65
+
See https://github.com/OCamlPro/opam-user-setup
67
+
{success & !user-setup:installed}
69
+
x-commit-hash: "353bcb82443b37cc1924039578d2b22cdb6951a9"
72
+
"https://github.com/ocaml/merlin/releases/download/v3.5.0/merlin-v3.5.0.tbz"
74
+
"sha256=cdf5426a0f2702a862d8a0290f6175daee53e044659899060597134ad2485328"
75
+
"sha512=77b89009ac57a7c4e524d1a091211dd75451fd7d342bccc37012ce0a7a488bf269631fede6cb75d345f521be7ad488416ec0282090d377225dba7e8b385bc1e2"