doomemacs/modules/lang/solidity/config.el
Edmund Milller 01993aa698 Fix solc and solium pathes
The bin files were links to the real thing.
2018-05-18 17:04:43 -05:00

29 lines
808 B
EmacsLisp

;;; lang/solidity/config.el -*- lexical-binding: t; -*-
;;
;; 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")
(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! 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)))))