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