this repo has no description
1opam-version: "2.0"
2maintainer: "defree@gmail.com"
3authors: "The Merlin team"
4homepage: "https://github.com/ocaml/merlin"
5bug-reports: "https://github.com/ocaml/merlin/issues"
6dev-repo: "git+https://github.com/ocaml/merlin.git"
7build: [
8 ["dune" "subst"] {dev}
9 ["dune" "build" "-p" name "-j" jobs]
10 ["dune" "runtest" "-p" name "-j" jobs] {with-test}
11]
12depends: [
13 "ocaml" {>= "4.02.1" & < "4.09"}
14 "dune" {>= "1.8.0"}
15 "ocamlfind" {>= "1.5.2"}
16 "yojson" {< "2.0.0"}
17 "mdx" {with-test & >= "1.3.0"}
18]
19synopsis:
20 "Editor helper, provides completion, typing and source browsing in Vim and Emacs"
21description:
22 "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."
23post-messages: [
24 "merlin installed.
25
26Quick setup for VIM
27-------------------
28Append this to your .vimrc to add merlin to vim's runtime-path:
29 let g:opamshare = substitute(system('opam config var share'),'\\n$','','''')
30 execute \"set rtp+=\" . g:opamshare . \"/merlin/vim\"
31
32Also run the following line in vim to index the documentation:
33 :execute \"helptags \" . g:opamshare . \"/merlin/vim/doc\"
34
35Quick setup for EMACS
36-------------------
37Add opam emacs directory to your load-path by appending this to your .emacs:
38 (let ((opam-share (ignore-errors (car (process-lines \"opam\" \"config\" \"var\" \"share\")))))
39 (when (and opam-share (file-directory-p opam-share))
40 ;; Register Merlin
41 (add-to-list 'load-path (expand-file-name \"emacs/site-lisp\" opam-share))
42 (autoload 'merlin-mode \"merlin\" nil t nil)
43 ;; Automatically start it in OCaml buffers
44 (add-hook 'tuareg-mode-hook 'merlin-mode t)
45 (add-hook 'caml-mode-hook 'merlin-mode t)
46 ;; Use opam switch to lookup ocamlmerlin binary
47 (setq merlin-command 'opam)))
48
49Take a look at https://github.com/ocaml/merlin for more information
50
51Quick setup with opam-user-setup
52--------------------------------
53
54Opam-user-setup support Merlin.
55
56 $ opam user-setup install
57
58should take care of basic setup.
59See https://github.com/OCamlPro/opam-user-setup
60"
61 {success & !user-setup:installed}
62]
63url {
64 src: "https://github.com/ocaml/merlin/archive/v3.3.1.tar.gz"
65 checksum: [
66 "md5=b542cacabeb98f9f22c6740f22a9fea7"
67 "sha512=8aa976197a55cdbe38180e80b1ae98b7408734a7a55b975a5be982016e7e723c64e9a82bcb1ff2827b27f9c5d210a2c34665d3e5c18afdaf4b0767b526b3d834"
68 ]
69}