lang/solidity: conform to Doom conventions
This commit is contained in:
parent
a814c833a2
commit
f5a0d89eda
1 changed files with 12 additions and 15 deletions
|
@ -4,25 +4,22 @@
|
|||
;; Plugins
|
||||
;;
|
||||
|
||||
(def-package! solidity-mode
|
||||
:mode "\\.sol$"
|
||||
:init
|
||||
(setq solidity-solc-path "~/.node_modules/lib/node_modules/solc/solcjs")
|
||||
(setq solidity-solium-path "~/.node_modules/lib/node_modules/solium/bin/solium.js")
|
||||
;; `solidity-mode'
|
||||
(setq solidity-comment-style 'slash
|
||||
solidity-flycheck-solc-checker-active t
|
||||
solidity-flycheck-solium-checker-active t)
|
||||
|
||||
(setq solidity-flycheck-solc-checker-active t)
|
||||
(setq solidity-flycheck-solium-checker-active t)
|
||||
|
||||
(setq flycheck-solidity-solc-addstd-contracts t)
|
||||
:config
|
||||
(setq solidity-comment-style 'slash))
|
||||
(def-package! solidity-flycheck ; included with solidity-mode
|
||||
:when (featurep! :feature syntax-checker)
|
||||
:after solidity-mode
|
||||
:init (add-hook 'solidity-mode-hook #'flycheck-mode)
|
||||
:config (setq flycheck-solidity-solc-addstd-contracts t)
|
||||
|
||||
|
||||
(def-package! company-solidity
|
||||
:when (featurep! :completion company)
|
||||
:after solidity-mode
|
||||
:config
|
||||
(add-hook 'solidity-mode-hook
|
||||
(lambda ()
|
||||
(set (make-local-variable 'company-backends)
|
||||
(append '((company-solidity company-capf company-dabbrev-code))
|
||||
company-backends)))))
|
||||
(setq company-backends (delq 'company-solidity company-backends))
|
||||
(set! :company-backends 'solidity-mode 'company-solidity))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue