doomemacs/modules/lang/solidity/config.el

27 lines
788 B
EmacsLisp
Raw Normal View History

2018-05-17 21:00:30 -05:00
;;; lang/solidity/config.el -*- lexical-binding: t; -*-
;;
;; Packages
2018-05-17 21:00:30 -05:00
;;;###package solidity-mode
(setq solidity-comment-style 'slash)
2018-05-17 21:00:30 -05:00
(use-package! solidity-flycheck ; included with solidity-mode
:when (featurep! :tools flycheck)
:after solidity-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)))
2018-05-17 21:00:30 -05:00
(use-package! company-solidity
2018-05-17 21:00:30 -05:00
:when (featurep! :completion company)
:after solidity-mode
:config
(delq! 'company-solidity company-backends)
(set-company-backend! 'solidity-mode 'company-solidity))