2018-05-17 21:00:30 -05:00
|
|
|
;;; lang/solidity/config.el -*- lexical-binding: t; -*-
|
|
|
|
|
|
|
|
;;
|
2021-10-18 11:42:34 +02:00
|
|
|
;;; Packages
|
2018-05-17 21:00:30 -05:00
|
|
|
|
2021-10-18 11:42:34 +02:00
|
|
|
(after! solidity-mode
|
|
|
|
(setq solidity-comment-style 'slash)
|
2020-01-29 23:59:45 +09:00
|
|
|
(set-docsets! 'solidity-mode "Solidity")
|
2021-10-18 11:42:34 +02:00
|
|
|
(set-company-backend! 'solidity-mode 'company-solidity)
|
2018-06-07 18:03:58 +02:00
|
|
|
|
2021-10-18 11:42:34 +02:00
|
|
|
(use-package! solidity-flycheck ; included with solidity-mode
|
|
|
|
:when (featurep! :checkers syntax)
|
|
|
|
: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
|
|
|
|
2021-10-18 11:42:34 +02:00
|
|
|
(use-package! company-solidity
|
|
|
|
:when (featurep! :completion company)
|
|
|
|
:config (delq! 'company-solidity company-backends)))
|