Setup the new flycheck-ocaml syntax checker
This commit is contained in:
parent
dc82375714
commit
67082e77e3
1 changed files with 10 additions and 3 deletions
|
@ -49,7 +49,7 @@
|
||||||
|
|
||||||
;;; Code:
|
;;; Code:
|
||||||
|
|
||||||
(prelude-require-packages '(tuareg utop merlin))
|
(prelude-require-packages '(tuareg utop merlin flycheck-ocaml))
|
||||||
|
|
||||||
(require 'tuareg)
|
(require 'tuareg)
|
||||||
(require 'utop)
|
(require 'utop)
|
||||||
|
@ -60,8 +60,15 @@
|
||||||
("\\.topml\\'" . tuareg-mode))
|
("\\.topml\\'" . tuareg-mode))
|
||||||
auto-mode-alist))
|
auto-mode-alist))
|
||||||
|
|
||||||
(add-hook 'tuareg-mode-hook 'utop-setup-ocaml-buffer)
|
(with-eval-after-load 'merlin
|
||||||
(add-hook 'tuareg-mode-hook 'merlin-mode)
|
;; Disable Merlin's own error checking
|
||||||
|
(setq merlin-error-after-save nil)
|
||||||
|
|
||||||
|
;; Enable Flycheck checker
|
||||||
|
(flycheck-ocaml-setup))
|
||||||
|
|
||||||
|
(add-hook 'tuareg-mode-hook #'utop-setup-ocaml-buffer)
|
||||||
|
(add-hook 'tuareg-mode-hook #'merlin-mode)
|
||||||
|
|
||||||
(add-hook 'tuareg-mode-hook (lambda ()
|
(add-hook 'tuareg-mode-hook (lambda ()
|
||||||
(progn
|
(progn
|
||||||
|
|
Loading…
Reference in a new issue