doomemacs/modules/lang/solidity/config.el

23 lines
800 B
EmacsLisp
Raw Normal View History

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)
(set-docsets! 'solidity-mode "Solidity")
2021-10-18 11:42:34 +02:00
(set-company-backend! 'solidity-mode 'company-solidity)
2021-10-18 11:42:34 +02:00
(use-package! solidity-flycheck ; included with solidity-mode
:when (modulep! :checkers syntax)
2021-10-18 11:42:34 +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
2021-10-18 11:42:34 +02:00
(use-package! company-solidity
:when (modulep! :completion company)
2021-10-18 11:42:34 +02:00
:config (delq! 'company-solidity company-backends)))