doomemacs/modules/lang/solidity/config.el
Henrik Lissner 56b4cba964
Fix solium error preventing solidity-mode #659
Now conditionally activates flycheckers using the existence of their
binaries at load time.
2018-06-08 13:08:37 +02:00

28 lines
869 B
EmacsLisp

;;; lang/solidity/config.el -*- lexical-binding: t; -*-
;;
;; Plugins
;;
;; `solidity-mode'
(setq solidity-comment-style 'slash)
(def-package! solidity-flycheck ; included with solidity-mode
:when (featurep! :feature syntax-checker)
:after solidity-mode
:init (add-hook 'solidity-mode-hook #'flycheck-mode)
: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
:when (featurep! :completion company)
:after solidity-mode
:config
(setq company-backends (delq 'company-solidity company-backends))
(set! :company-backends 'solidity-mode 'company-solidity))