feature/{syntax-checker,spellcheck} -> tools/fly{check,spell}
This commit is contained in:
parent
88f50bbdec
commit
69ed1a4a99
46 changed files with 147 additions and 110 deletions
|
@ -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
|
||||
|
|
|
@ -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."
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue