Last active
February 12, 2023 05:40
Revisions
-
unhammer revised this gist
Oct 9, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -21,6 +21,6 @@ EOF find ~/.opam -name '*.cmt' -print0 \ | xargs -0 -I{} dirname '{}' \ | sort -u \ | awk '{ print "S "$0"\nB "$0 }' >> .merlin fi -
unhammer created this gist
Oct 9, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,26 @@ #!/bin/sh if test -f .merlin; then echo ".merlin already exists, bailing out ..." >&2 exit 1 else # You could add your default EXT's and such to this list: cat >.merlin <<EOF S . B _build EOF # Add PKG's: ocamlfind list \ | awk '{ print "PKG "$1 }' >>.merlin # See https://github.com/the-lambda-church/merlin/wiki/Letting-merlin-locate-go-to-stuff-in-.opam find ~/.opam -name '*.cmt' -print0 \ | xargs -0 -I{} dirname '{}' \ | sort -u \ | sed 's/.*/S &\nB &/' >> .merlin fi