···
+
maintainer: "defree@gmail.com"
+
authors: "The Merlin team"
+
homepage: "https://github.com/ocaml/merlin"
+
bug-reports: "https://github.com/ocaml/merlin/issues"
+
dev-repo: "git+https://github.com/ocaml/merlin.git"
+
["dune" "build" "-p" name "-j" jobs]
+
["dune" "runtest" "-p" name "-j" jobs] {with-test}
+
"ocaml" {>= "4.14" & < "4.15"}
+
"merlin-lib" {= version}
+
"dot-merlin-reader" {>= "4.9"}
+
"Editor helper, provides completion, typing and source browsing in Vim and Emacs"
+
"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."
+
Append this to your .vimrc to add merlin to vim's runtime-path:
+
let g:opamshare = substitute(system('opam var share'),'\\n$','','''')
+
execute \"set rtp+=\" . g:opamshare . \"/merlin/vim\"
+
Also run the following line in vim to index the documentation:
+
:execute \"helptags \" . g:opamshare . \"/merlin/vim/doc\"
+
Add opam emacs directory to your load-path by appending this to your .emacs:
+
(let ((opam-share (ignore-errors (car (process-lines \"opam\" \"var\" \"share\")))))
+
(when (and opam-share (file-directory-p opam-share))
+
(add-to-list 'load-path (expand-file-name \"emacs/site-lisp\" opam-share))
+
(autoload 'merlin-mode \"merlin\" nil t nil)
+
;; Automatically start it in OCaml buffers
+
(add-hook 'tuareg-mode-hook 'merlin-mode t)
+
(add-hook 'caml-mode-hook 'merlin-mode t)
+
;; Use opam switch to lookup ocamlmerlin binary
+
(setq merlin-command 'opam)
+
;; To easily change opam switches within a given Emacs session, you can
+
;; install the minor mode https://github.com/ProofGeneral/opam-switch-mode
+
;; and use one of its \"OPSW\" menus.
+
Take a look at https://github.com/ocaml/merlin for more information
+
Quick setup with opam-user-setup
+
--------------------------------
+
Opam-user-setup support Merlin.
+
$ opam user-setup install
+
should take care of basic setup.
+
See https://github.com/OCamlPro/opam-user-setup
+
{success & !user-setup:installed}
+
"https://github.com/ocaml/merlin/releases/download/v4.11-414/merlin-4.11-414.tbz"
+
"sha256=834d4e88c7b2fac56b2fe88d17b93ef963dff52de6c8e6d01bf63fd2d10d9158"
+
"sha512=5481a90f4168aa9f7a053b98215e916981e627c450698f60cdded8be53d31c1468dcdd3bd58da31eee9464afb7a6a336de7973a6b7081fd9b56582dbb5cbb9d8"
+
x-commit-hash: "c6835c65f7caeaf41fc6acb1b8f466f2dd190d75"