doomemacs/modules/lang/solidity/README.org

32 lines
1,021 B
Org Mode
Raw Normal View History

2018-05-17 21:00:30 -05:00
#+TITLE: :lang solidity
This module adds [[https://github.com/ethereum/solidity][Solidity]] support through [[https://github.com/ethereum/emacs-solidity][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.
** [[https://github.com/ethereum/solc-js][Solc]]
#+BEGIN_SRC sh
npm install -g solc
#+END_SRC
** [[http://solium.readthedocs.io/en/latest/user-guide.html#installation][Solium]]
#+BEGIN_SRC sh
npm install -g solium
#+END_SRC
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~
#+BEGIN_SRC emacs-lisp
(setq flycheck-solidity-solium-soliumrcfile "/$HOME/.soliumrc.json")
#+END_SRC
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