···
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" name "-j" jobs] {with-test}
14
+
"ocaml" {>= "5.2" & < "5.3"}
16
+
"merlin-lib" {= version}
17
+
"dot-merlin-reader" {>= "5.2"}
18
+
"ocaml-index" {>= "1.0" & post}
19
+
"yojson" {>= "2.0.0"}
20
+
"conf-jq" {with-test}
21
+
"ppxlib" {with-test}
28
+
"Editor helper, provides completion, typing and source browsing in Vim and Emacs"
30
+
"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."
36
+
Append this to your .vimrc to add merlin to vim's runtime-path:
37
+
let g:opamshare = substitute(system('opam var share'),'\\n$','','''')
38
+
execute \"set rtp+=\" . g:opamshare . \"/merlin/vim\"
40
+
Also run the following line in vim to index the documentation:
41
+
:execute \"helptags \" . g:opamshare . \"/merlin/vim/doc\"
43
+
Quick setup for EMACS
45
+
Add opam emacs directory to your load-path by appending this to your .emacs:
46
+
(let ((opam-share (ignore-errors (car (process-lines \"opam\" \"var\" \"share\")))))
47
+
(when (and opam-share (file-directory-p opam-share))
49
+
(add-to-list 'load-path (expand-file-name \"emacs/site-lisp\" opam-share))
50
+
(autoload 'merlin-mode \"merlin\" nil t nil)
51
+
;; Automatically start it in OCaml buffers
52
+
(add-hook 'tuareg-mode-hook 'merlin-mode t)
53
+
(add-hook 'caml-mode-hook 'merlin-mode t)
54
+
;; Use opam switch to lookup ocamlmerlin binary
55
+
(setq merlin-command 'opam)
56
+
;; To easily change opam switches within a given Emacs session, you can
57
+
;; install the minor mode https://github.com/ProofGeneral/opam-switch-mode
58
+
;; and use one of its \"OPSW\" menus.
60
+
Take a look at https://github.com/ocaml/merlin for more information
62
+
Quick setup with opam-user-setup
63
+
--------------------------------
65
+
Opam-user-setup support Merlin.
67
+
$ opam user-setup install
69
+
should take care of basic setup.
70
+
See https://github.com/OCamlPro/opam-user-setup
72
+
{success & !user-setup:installed}
76
+
"https://github.com/ocaml/merlin/releases/download/v5.2.1-502/merlin-5.2.1-502.tbz"
78
+
"sha256=5c02dc71b2d31b619851c14a965b91c650a4dbcd49bf56004eee61e0c58d584c"
79
+
"sha512=abf82c906759c8547437664ab5db67b839bbad185fa2541b28e4e07137fdf3824736dae859f0d35bd9a3950633c81a69fd0a1a0e2393ead43822afc66d1aaf3d"
82
+
x-commit-hash: "0eaccc1b8520d605b1e00685e1c3f8acb5da534c"