Fix solium error preventing solidity-mode #659
Now conditionally activates flycheckers using the existence of their binaries at load time.
This commit is contained in:
parent
ab98020295
commit
56b4cba964
1 changed files with 8 additions and 5 deletions
|
@ -5,17 +5,20 @@
|
||||||
;;
|
;;
|
||||||
|
|
||||||
;; `solidity-mode'
|
;; `solidity-mode'
|
||||||
(setq solidity-comment-style 'slash
|
(setq solidity-comment-style 'slash)
|
||||||
solidity-flycheck-solc-checker-active t
|
|
||||||
solidity-flycheck-solium-checker-active t)
|
|
||||||
|
|
||||||
|
|
||||||
(def-package! solidity-flycheck ; included with solidity-mode
|
(def-package! solidity-flycheck ; included with solidity-mode
|
||||||
:when (featurep! :feature syntax-checker)
|
:when (featurep! :feature syntax-checker)
|
||||||
:after solidity-mode
|
:after solidity-mode
|
||||||
:init (add-hook 'solidity-mode-hook #'flycheck-mode)
|
:init (add-hook 'solidity-mode-hook #'flycheck-mode)
|
||||||
:config (setq flycheck-solidity-solc-addstd-contracts t))
|
:config
|
||||||
|
(setq flycheck-solidity-solc-addstd-contracts t)
|
||||||
|
(when (funcall flycheck-executable-find solidity-solc-path)
|
||||||
|
(add-to-list 'flycheck-checkers 'solidity-checker nil #'eq))
|
||||||
|
(when (funcall flycheck-executable-find solidity-solium-path)
|
||||||
|
(add-to-list 'flycheck-checkers 'solium-checker nil #'eq)))
|
||||||
|
|
||||||
|
|
||||||
(def-package! company-solidity
|
(def-package! company-solidity
|
||||||
:when (featurep! :completion company)
|
:when (featurep! :completion company)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue