2018-05-17 21:00:30 -05:00
|
|
|
;;; lang/solidity/config.el -*- lexical-binding: t; -*-
|
|
|
|
|
|
|
|
;;
|
2018-09-07 19:36:16 -04:00
|
|
|
;; Packages
|
2018-05-17 21:00:30 -05:00
|
|
|
|
2019-09-13 21:59:03 -04:00
|
|
|
;;;###package solidity-mode
|
2018-06-07 18:03:58 +02:00
|
|
|
(setq solidity-comment-style 'slash)
|
2018-05-17 21:00:30 -05:00
|
|
|
|
|
|
|
|
2019-07-23 12:44:03 +02:00
|
|
|
(use-package! solidity-flycheck ; included with solidity-mode
|
2020-01-14 03:04:26 -05:00
|
|
|
:when (featurep! :checkers syntax)
|
2018-05-25 19:04:01 +02:00
|
|
|
:after solidity-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
|
|
|
|
2019-07-23 12:44:03 +02:00
|
|
|
(use-package! company-solidity
|
2018-05-17 21:00:30 -05:00
|
|
|
:when (featurep! :completion company)
|
|
|
|
:after solidity-mode
|
|
|
|
:config
|
2019-09-13 21:59:03 -04:00
|
|
|
(delq! 'company-solidity company-backends)
|
2018-06-15 02:58:12 +02:00
|
|
|
(set-company-backend! 'solidity-mode 'company-solidity))
|