Keyword flycheck-ocaml with :toggle instead of using a `when`

This commit is contained in:
Artur Juraszek 2018-11-15 19:48:22 +01:00 committed by duianto
parent 2e6817ef34
commit 033e960c94
2 changed files with 14 additions and 13 deletions

View File

@ -1749,6 +1749,7 @@ Other:
- Fixed issue with OPAM share directory on Windows (thanks to Levi Roth)
- Enabled flycheck-ocaml (thanks to Dave Aitken)
- Fixed backspace delete (thanks to Hasan Alirajpurwala)
- Fixed flycheck-ocaml not initialized warning (thanks to Artur Juraszek)
**** Org
- Load org-mode email integration (mu4e/notmuch) when org is loaded
(thanks to Steven Allen)

View File

@ -14,7 +14,7 @@
;; auto-complete
company
flycheck
flycheck-ocaml
(flycheck-ocaml :toggle (configuration-layer/layer-used-p 'syntax-checking))
ggtags
counsel-gtags
helm-gtags
@ -32,18 +32,18 @@
:modes merlin-mode
:variables merlin-completion-with-doc t)))
(when (configuration-layer/layer-used-p 'syntax-checking)
(defun ocaml/post-init-flycheck ()
(spacemacs/enable-flycheck 'tuareg-mode))
(defun ocaml/init-flycheck-ocaml ()
(use-package flycheck-ocaml
:if (configuration-layer/package-used-p 'flycheck)
:defer t
:init
(progn
(with-eval-after-load 'merlin
(setq merlin-error-after-save nil)
(flycheck-ocaml-setup))))))
(defun ocaml/post-init-flycheck ()
(spacemacs/enable-flycheck 'tuareg-mode))
(defun ocaml/init-flycheck-ocaml ()
(use-package flycheck-ocaml
:if (configuration-layer/package-used-p 'flycheck)
:defer t
:init
(progn
(with-eval-after-load 'merlin
(setq merlin-error-after-save nil)
(flycheck-ocaml-setup)))))
(defun ocaml/post-init-ggtags ()
(add-hook 'ocaml-mode-local-vars-hook #'spacemacs/ggtags-mode-enable))