2018-05-17 21:00:30 -05:00
|
|
|
;;; lang/solidity/config.el -*- lexical-binding: t; -*-
|
|
|
|
|
|
|
|
;;
|
|
|
|
;; Plugins
|
|
|
|
;;
|
|
|
|
|
2018-05-25 19:04:01 +02:00
|
|
|
;; `solidity-mode'
|
2018-06-07 18:03:58 +02:00
|
|
|
(setq solidity-comment-style 'slash)
|
2018-05-17 21:00:30 -05:00
|
|
|
|
|
|
|
|
2018-05-25 19:04:01 +02:00
|
|
|
(def-package! solidity-flycheck ; included with solidity-mode
|
|
|
|
:when (featurep! :feature syntax-checker)
|
|
|
|
:after solidity-mode
|
|
|
|
:init (add-hook 'solidity-mode-hook #'flycheck-mode)
|
2018-06-07 18:03:58 +02:00
|
|
|
: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)))
|
|
|
|
|
2018-05-17 21:00:30 -05:00
|
|
|
|
|
|
|
(def-package! company-solidity
|
|
|
|
:when (featurep! :completion company)
|
|
|
|
:after solidity-mode
|
|
|
|
:config
|
2018-05-25 19:04:01 +02:00
|
|
|
(setq company-backends (delq 'company-solidity company-backends))
|
|
|
|
(set! :company-backends 'solidity-mode 'company-solidity))
|