···
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"
9
+
["dune" "subst"] {dev}
10
+
["dune" "build" "-p" name "-j" jobs]
11
+
["dune" "runtest" "-p" "merlin,dot-merlin-reader" "-j" "1"] {with-test}
14
+
"ocaml" {>= "4.12" & < "4.13"}
16
+
"dot-merlin-reader" {>= "4.0"}
17
+
"yojson" {>= "2.0.0"}
18
+
"conf-jq" {with-test}
19
+
"csexp" {>= "1.2.3"}
23
+
"ppxlib" {with-test}
25
+
conflicts: "seq" {!= "base"}
27
+
"Editor helper, provides completion, typing and source browsing in Vim and Emacs"
29
+
"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."
35
+
Append this to your .vimrc to add merlin to vim's runtime-path:
36
+
let g:opamshare = substitute(system('opam var share'),'\\n$','','''')
37
+
execute \"set rtp+=\" . g:opamshare . \"/merlin/vim\"
39
+
Also run the following line in vim to index the documentation:
40
+
:execute \"helptags \" . g:opamshare . \"/merlin/vim/doc\"
42
+
Quick setup for EMACS
44
+
Add opam emacs directory to your load-path by appending this to your .emacs:
45
+
(let ((opam-share (ignore-errors (car (process-lines \"opam\" \"var\" \"share\")))))
46
+
(when (and opam-share (file-directory-p opam-share))
48
+
(add-to-list 'load-path (expand-file-name \"emacs/site-lisp\" opam-share))
49
+
(autoload 'merlin-mode \"merlin\" nil t nil)
50
+
;; Automatically start it in OCaml buffers
51
+
(add-hook 'tuareg-mode-hook 'merlin-mode t)
52
+
(add-hook 'caml-mode-hook 'merlin-mode t)
53
+
;; Use opam switch to lookup ocamlmerlin binary
54
+
(setq merlin-command 'opam)))
56
+
Take a look at https://github.com/ocaml/merlin for more information
58
+
Quick setup with opam-user-setup
59
+
--------------------------------
61
+
Opam-user-setup support Merlin.
63
+
$ opam user-setup install
65
+
should take care of basic setup.
66
+
See https://github.com/OCamlPro/opam-user-setup
68
+
{success & !user-setup:installed}
72
+
"https://github.com/ocaml/merlin/releases/download/v4.7-412/merlin-4.7-412.tbz"
74
+
"sha256=d14dc86bb11b94a50b372f00b97155280099bc63746ab609bfb0568814604f46"
75
+
"sha512=d13e307d87b4719b56397e54e6f771a3ea77a766ab38b22414c4b1d4d5828b5f790c82f28d3feaf7fe45be10abd50d9a905ece932f43fdad98c88b73b35dd936"
78
+
x-commit-hash: "e3d85baec909b8caa8f33c2fd01894368e1d4273"