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
|
@ -146,7 +146,7 @@ compilation database is present in the project.")
|
|||
:hook (irony-mode . irony-eldoc))
|
||||
|
||||
(def-package! flycheck-irony
|
||||
:when (featurep! :feature syntax-checker)
|
||||
:when (featurep! :tools flycheck)
|
||||
:config (flycheck-irony-setup))
|
||||
|
||||
(def-package! company-irony
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
(package! cquery)
|
||||
(when (package! irony)
|
||||
(package! irony-eldoc)
|
||||
(when (featurep! :feature syntax-checker)
|
||||
(when (featurep! :tools flycheck)
|
||||
(package! flycheck-irony))
|
||||
(when (featurep! :completion company)
|
||||
(package! company-irony)
|
||||
|
|
|
@ -106,5 +106,5 @@
|
|||
:desc "refactor" "R" #'hydra-cljr-help-menu/body))
|
||||
|
||||
(def-package! flycheck-joker
|
||||
:when (featurep! :feature syntax-checker)
|
||||
:when (featurep! :tools flycheck)
|
||||
:after flycheck))
|
||||
|
|
|
@ -4,5 +4,5 @@
|
|||
(package! cider)
|
||||
(package! clj-refactor)
|
||||
|
||||
(when (featurep! :feature syntax-checker)
|
||||
(when (featurep! :tools flycheck)
|
||||
(package! flycheck-joker))
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
|
||||
(def-package! flycheck-crystal
|
||||
:when (featurep! :feature syntax-checker)
|
||||
:when (featurep! :tools flycheck)
|
||||
:after crystal-mode)
|
||||
|
||||
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
(remove-hook 'alchemist-iex-mode-hook fn)))
|
||||
|
||||
(def-package! flycheck-credo
|
||||
:when (featurep! :feature syntax-checker)
|
||||
:when (featurep! :tools flycheck)
|
||||
:config (flycheck-credo-setup)))
|
||||
|
||||
|
||||
|
|
|
@ -4,5 +4,5 @@
|
|||
;; +elixir.el
|
||||
(package! elixir-mode)
|
||||
(package! alchemist)
|
||||
(when (featurep! :feature syntax-checker)
|
||||
(when (featurep! :tools flycheck)
|
||||
(package! flycheck-credo))
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
|
||||
(def-package! flycheck-elm
|
||||
:when (featurep! :feature syntax-checker)
|
||||
:when (featurep! :tools flycheck)
|
||||
:after elm-mode
|
||||
:config (add-to-list 'flycheck-checkers 'elm nil #'eq))
|
||||
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
;;; lang/elm/packages.el
|
||||
|
||||
(package! elm-mode)
|
||||
(when (featurep! :feature syntax-checker)
|
||||
(when (featurep! :tools flycheck)
|
||||
(package! flycheck-elm))
|
||||
|
||||
|
|
|
@ -107,7 +107,7 @@
|
|||
|
||||
|
||||
(def-package! flycheck-cask
|
||||
:when (featurep! :feature syntax-checker)
|
||||
:when (featurep! :tools flycheck)
|
||||
:defer t
|
||||
:init
|
||||
(add-hook! 'emacs-lisp-mode-hook
|
||||
|
|
|
@ -7,5 +7,5 @@
|
|||
(package! overseer)
|
||||
(package! elisp-def)
|
||||
|
||||
(when (featurep! :feature syntax-checker)
|
||||
(when (featurep! :tools flycheck)
|
||||
(package! flycheck-cask))
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
|
||||
(def-package! flycheck-rebar3
|
||||
:when (featurep! :feature syntax-checker)
|
||||
:when (featurep! :tools flycheck)
|
||||
:after flycheck
|
||||
:config (flycheck-rebar3-setup))
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
(package! erlang)
|
||||
|
||||
(when (featurep! :feature syntax-checker)
|
||||
(when (featurep! :tools flycheck)
|
||||
(package! flycheck-rebar3))
|
||||
|
||||
(when (featurep! :completion ivy)
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
"-fdefer-typed-holes"
|
||||
"-fdefer-type-errors"))
|
||||
:config
|
||||
(when (featurep! :feature syntax-checker)
|
||||
(when (featurep! :tools flycheck)
|
||||
(flycheck-add-next-checker 'haskell-dante '(warning . haskell-hlint)))
|
||||
|
||||
(set-company-backend! 'dante-mode #'dante-company)
|
||||
|
|
|
@ -16,7 +16,7 @@ This is necessary because `intero-mode' doesn't do its own error checks."
|
|||
(setq haskell-compile-cabal-build-command "stack build --fast")
|
||||
(set-lookup-handlers! 'intero-mode :definition #'intero-goto-definition)
|
||||
(set-company-backend! 'intero-mode 'intero-company)
|
||||
(when (featurep! :feature syntax-checker)
|
||||
(when (featurep! :tools flycheck)
|
||||
(flycheck-add-next-checker 'intero '(warning . haskell-hlint)))
|
||||
|
||||
(when (featurep 'evil)
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
(after! haskell-mode
|
||||
(setq haskell-process-suggest-remove-import-lines t ; warnings for redundant imports etc
|
||||
haskell-process-auto-import-loaded-modules t)
|
||||
(when (featurep! :feature syntax-checker)
|
||||
(when (featurep! :tools flycheck)
|
||||
(setq haskell-process-show-overlays nil)) ; flycheck makes this unnecessary
|
||||
(add-hook! 'haskell-mode-hook
|
||||
#'(haskell-collapse-mode ; support folding haskell code blocks
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
:init
|
||||
(setq meghanada-server-install-dir (concat doom-etc-dir "meghanada-server/")
|
||||
meghanada-use-company (featurep! :completion company)
|
||||
meghanada-use-flycheck (featurep! :feature syntax-checker)
|
||||
meghanada-use-flycheck (featurep! :tools flycheck)
|
||||
meghanada-use-eldoc t
|
||||
meghanada-use-auto-start t)
|
||||
:config
|
||||
|
|
|
@ -73,7 +73,7 @@
|
|||
(add-to-list 'magic-mode-alist '(+javascript-jsx-file-p . rjsx-mode))
|
||||
:config
|
||||
(set-electric! 'rjsx-mode :chars '(?\} ?\) ?. ?>))
|
||||
(when (featurep! :feature syntax-checker)
|
||||
(when (featurep! :tools flycheck)
|
||||
(add-hook! 'rjsx-mode-hook
|
||||
;; jshint doesn't know how to deal with jsx
|
||||
(push 'javascript-jshint flycheck-disabled-checkers)))
|
||||
|
|
|
@ -65,7 +65,7 @@ If no viewers are found, `latex-preview-pane' is used.")
|
|||
'local))
|
||||
;; Enable rainbow mode after applying styles to the buffer
|
||||
(add-hook 'TeX-update-style-hook #'rainbow-delimiters-mode)
|
||||
(when (featurep! :feature spellcheck)
|
||||
(when (featurep! :tools flyspell)
|
||||
(add-hook 'latex-mode-local-vars-hook #'flyspell-mode))
|
||||
;; All these excess pairs dramatically slow down typing in latex buffers, so
|
||||
;; we remove them. Let snippets do their job.
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
|
||||
(def-package! flycheck-ledger
|
||||
:when (featurep! :feature syntax-checker)
|
||||
:when (featurep! :tools flycheck)
|
||||
:after ledger-mode)
|
||||
|
||||
|
||||
|
|
|
@ -6,5 +6,5 @@
|
|||
(when (featurep! :feature evil)
|
||||
(package! evil-ledger))
|
||||
|
||||
(when (featurep! :feature syntax-checker)
|
||||
(when (featurep! :tools flycheck)
|
||||
(package! flycheck-ledger))
|
||||
|
|
|
@ -37,6 +37,6 @@ windows."
|
|||
|
||||
|
||||
(def-package! flycheck-nim
|
||||
:when (featurep! :feature syntax-checker)
|
||||
:when (featurep! :tools flycheck)
|
||||
:after nim-mode)
|
||||
|
||||
|
|
|
@ -5,5 +5,5 @@
|
|||
|
||||
(package! nim-mode)
|
||||
|
||||
(when (featurep! :feature syntax-checker)
|
||||
(when (featurep! :tools flycheck)
|
||||
(package! flycheck-nim))
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -6,5 +6,5 @@
|
|||
|
||||
|
||||
(def-package! flycheck-perl6
|
||||
:when (featurep! :feature syntax-checker)
|
||||
:when (featurep! :tools flycheck)
|
||||
:after perl6-mode)
|
||||
|
|
|
@ -3,5 +3,5 @@
|
|||
|
||||
(package! perl6-mode)
|
||||
|
||||
(when (featurep! :feature syntax-checker)
|
||||
(when (featurep! :tools flycheck)
|
||||
(package! flycheck-perl6))
|
||||
|
|
|
@ -10,6 +10,6 @@
|
|||
|
||||
|
||||
(def-package! flycheck-plantuml
|
||||
:when (featurep! :feature syntax-checker)
|
||||
:when (featurep! :tools flycheck)
|
||||
:after plantuml-mode
|
||||
:config (flycheck-plantuml-setup))
|
||||
|
|
|
@ -2,5 +2,5 @@
|
|||
;;; lang/plantuml/packages.el
|
||||
|
||||
(package! plantuml-mode)
|
||||
(when (featurep! :feature syntax-checker)
|
||||
(when (featurep! :tools flycheck)
|
||||
(package! flycheck-plantuml))
|
||||
|
|
|
@ -28,6 +28,6 @@
|
|||
|
||||
|
||||
(def-package! flycheck-rust
|
||||
:when (featurep! :feature syntax-checker)
|
||||
:when (featurep! :tools flycheck)
|
||||
:after rust-mode
|
||||
:config (add-hook 'rust-mode-hook #'flycheck-rust-setup))
|
||||
|
|
|
@ -6,5 +6,5 @@
|
|||
(package! racer)
|
||||
(package! rust-mode)
|
||||
|
||||
(when (featurep! :feature syntax-checker)
|
||||
(when (featurep! :tools flycheck)
|
||||
(package! flycheck-rust))
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
|
||||
(def-package! solidity-flycheck ; included with solidity-mode
|
||||
:when (featurep! :feature syntax-checker)
|
||||
:when (featurep! :tools flycheck)
|
||||
:after solidity-mode
|
||||
:config
|
||||
(setq flycheck-solidity-solc-addstd-contracts t)
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
|
||||
(def-package! flycheck-swift
|
||||
:when (and (featurep! :feature syntax-checker)
|
||||
:when (and (featurep! :tools flycheck)
|
||||
(not (featurep! +lsp)))
|
||||
:after swift-mode
|
||||
:config (flycheck-swift-setup))
|
||||
|
|
|
@ -7,5 +7,5 @@
|
|||
(package! lsp-sourcekit)
|
||||
(when (featurep! :completion company)
|
||||
(package! company-sourcekit))
|
||||
(when (featurep! :feature syntax-checker)
|
||||
(when (featurep! :tools flycheck)
|
||||
(package! flycheck-swift)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue