···
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}
15
+
"merlin-lib" {= version}
16
+
"dot-merlin-reader" {= version}
17
+
"ocaml-index" {>= "1.0" & post}
18
+
"yojson" {>= "2.0.0"}
19
+
"conf-jq" {with-test}
20
+
"ppxlib" {with-test}
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\" \"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)
54
+
;; To easily change opam switches within a given Emacs session, you can
55
+
;; install the minor mode https://github.com/ProofGeneral/opam-switch-mode
56
+
;; and use one of its \"OPSW\" menus.
58
+
Take a look at https://github.com/ocaml/merlin for more information
60
+
Quick setup with opam-user-setup
61
+
--------------------------------
63
+
Opam-user-setup support Merlin.
65
+
$ opam user-setup install
67
+
should take care of basic setup.
68
+
See https://github.com/OCamlPro/opam-user-setup
70
+
{success & !user-setup:installed}
74
+
"https://github.com/ocaml/merlin/releases/download/v5.4-503/merlin-5.4-503.tbz"
76
+
"sha256=f2e4780c9a9ca54c403292e7ff7e0fa33d3afeae0c4e735e14f3f9cb74af2cbc"
77
+
"sha512=d81598359e33776d0388838f62175f704d96fc6e497d22a72508ea1f53bb7f0815561ae4fbfa6fd9c1a8ada94b8d0d4c7c03c35c4d8c0fbb323e94260ddd4885"
80
+
x-commit-hash: "3b3d3d1682f9334396a8ad6e245d95ae3be353ef"