From bd77db5d84638c088a4d0d647b1bdb4fbf42d142 Mon Sep 17 00:00:00 2001 From: Dave Aitken Date: Wed, 24 Jan 2018 23:47:26 +0000 Subject: [PATCH] ocaml: mention ocaml flycheck/merlin configuration in README --- layers/+lang/ocaml/README.org | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/layers/+lang/ocaml/README.org b/layers/+lang/ocaml/README.org index 8d255375d..5e6c9a99c 100644 --- a/layers/+lang/ocaml/README.org +++ b/layers/+lang/ocaml/README.org @@ -7,6 +7,7 @@ - [[#features][Features:]] - [[#install][Install]] - [[#layer][Layer]] + - [[#using-merlin-for-error-reporting][Using merlin for error reporting]] - [[#opam-packages][OPAM packages]] - [[#key-bindings][Key Bindings]] - [[#repl-utop][REPL (utop)]] @@ -22,7 +23,7 @@ This is a very basic layer for editing ocaml files. - Syntax highlighting (major-mode) via [[https://github.com/ocaml/tuareg][tuareg-mode]] - Error reporting, completion and type display via [[https://github.com/ocaml/merlin][merlin]] - auto-completion with company mode via [[https://github.com/ocaml/merlin][merlin]] -- syntax-checking via [[https://github.com/diml/utop][flycheck-ocaml]] +- syntax-checking via [[https://github.com/flycheck/flycheck-ocaml][flycheck-ocaml]] (or alternatively [[https://github.com/ocaml/merlin][merlin]]) * Install ** Layer @@ -30,6 +31,16 @@ To use this configuration layer, add it to your =~/.spacemacs=. You will need to add =ocaml= to the existing =dotspacemacs-configuration-layers= list in this file. +** Using merlin for error reporting +By default [[https://github.com/flycheck/flycheck-ocaml][flycheck-ocaml]] is used for error reporting when the +=syntax-checking= layer is also enabled as this is common throughout spacemacs. +You can disable this and switch back to [[https://github.com/ocaml/merlin][merlin]]'s default error reporting method +by adding [[https://github.com/flycheck/flycheck-ocaml][flycheck-ocaml]] to your excluded packages list in =.spacemacs=: + +#+BEGIN_SRC emacs-lisp +dotspacemacs-excluded-packages '(... flycheck-ocaml ... ) +#+END_SRC + ** OPAM packages This layer requires some [[http://opam.ocaml.org][opam]] packages: