doomemacs/modules/lang/solidity/config.el
Seong Yong-ju f31840ac9e Improve solidity layer
Enable +javascript-npm-mode in solidity-mode when package.json exists.
Set docsets for solidity-mode.
2020-01-29 23:59:45 +09:00

27 lines
832 B
EmacsLisp

;;; lang/solidity/config.el -*- lexical-binding: t; -*-
;;
;; Packages
;;;###package solidity-mode
(setq solidity-comment-style 'slash)
(use-package! solidity-flycheck ; included with solidity-mode
:when (featurep! :checkers syntax)
:after solidity-mode
:config
(set-docsets! 'solidity-mode "Solidity")
(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)))
(use-package! company-solidity
:when (featurep! :completion company)
:after solidity-mode
:config
(delq! 'company-solidity company-backends)
(set-company-backend! 'solidity-mode 'company-solidity))