feature/{syntax-checker,spellcheck} -> tools/fly{check,spell}

This commit is contained in:
Henrik Lissner 2019-02-22 00:20:29 -05:00
parent 88f50bbdec
commit 69ed1a4a99
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
46 changed files with 147 additions and 110 deletions

View file

@ -50,10 +50,10 @@ opam install merlin utop ocp-indent dune ocamlformat
* Configuration
+ if =:completion company= is enabled then autocomplete is provided by =merlin=
+ when =:feature syntax-checker= is enabled then =flycheck-ocaml= is activated
to do on-the-fly syntax/type checking via =merlin=, otherwise this is only
done when the file is saved.
+ spell checking is activated in comments if =:feature spellcheck= is active
+ when =:tools flycheck= is enabled then =flycheck-ocaml= is activated to do
on-the-fly syntax/type checking via =merlin=, otherwise this is only done when
the file is saved.
+ spell checking is activated in comments if =:tools flyspell= is active
+ a REPL is provided if =utop= is installed and =:feature eval= is active
+ if =:editor format= is enabled, the =ocamlformat= executable is available and
there is an =.ocamlformat= file present then =format-all-buffer= is bound to

View file

@ -17,7 +17,7 @@
(tuareg-opam-update-env (tuareg-opam-current-compiler))
;; Spell-check comments
(when (featurep! :feature spellcheck)
(when (featurep! :tools flyspell)
(add-hook 'tuareg-mode-local-vars-hook #'flyspell-prog-mode))
@ -59,7 +59,7 @@
(def-package! flycheck-ocaml
:when (featurep! :feature syntax-checker)
:when (featurep! :tools flycheck)
:init
(defun +ocaml|init-flycheck ()
"Activate `flycheck-ocaml` if the current project possesses a .merlin file."

View file

@ -6,7 +6,7 @@
(package! merlin-eldoc)
(package! ocp-indent)
(when (featurep! :feature syntax-checker)
(when (featurep! :tools flycheck)
(package! flycheck-ocaml))
(when (featurep! :feature eval)