doomemacs/modules/lang/solidity/README.org
Edmund Milller 3193e7a8a7 Add Solidity
Add basic Solidity module
2018-05-18 17:04:25 -05:00

1021 B

:lang solidity

This module adds Solidity support through solidity-mode

  • Syntax-checking (flycheck)
  • Code completion ([[https://github.com/ssmolkin1/company-solidity][company-solidity]])
  • Gas estimation(C-c C-g)

Install

There are two options for linters.

Solc

npm install -g solc

Solium

npm install -g solium

By default solium looks for .soliumrc.json in the project directory, but you can set it to your own .soliumrc.json with this in your private doom config.el

(setq flycheck-solidity-solium-soliumrcfile "/$HOME/.soliumrc.json")

They can be chained together so it's recommended you use both. Solc is ran first, and then Solium if Solc doesn't catch any errors.

TODO

  • Snippets