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]]~)
|
2018-05-25 19:10:49 +02:00
|
|
|
+ Gas estimation (~C-c C-g~)
|
2018-05-17 21:00:30 -05:00
|
|
|
|
2018-05-25 19:10:49 +02:00
|
|
|
* Table of Contents :TOC:
|
|
|
|
- [[Module Flags][Module Flags]]
|
|
|
|
- [[Prerequisites][Prerequisites]]
|
|
|
|
- [[Solc][Solc]]
|
|
|
|
- [[Solium][Solium]]
|
|
|
|
- [[TODO][TODO]]
|
|
|
|
|
|
|
|
* Module Flags
|
|
|
|
This module provides no flags.
|
|
|
|
|
|
|
|
* Prerequisites
|
|
|
|
This module requires one or both linters for syntax checking:
|
|
|
|
|
|
|
|
+ [[https://github.com/ethereum/solc-js][Solc]]
|
|
|
|
+ [[http://solium.readthedocs.io/en/latest/user-guide.html#installation][Solium]]
|
|
|
|
|
|
|
|
If both are enabled *Solc* is run first, then *Solium* if *Solc* catches no
|
|
|
|
errors.
|
|
|
|
|
|
|
|
** Solc
|
2018-05-17 21:00:30 -05:00
|
|
|
#+BEGIN_SRC sh
|
|
|
|
npm install -g solc
|
|
|
|
#+END_SRC
|
|
|
|
|
2018-05-25 19:10:49 +02:00
|
|
|
** Solium
|
2018-05-17 21:00:30 -05:00
|
|
|
#+BEGIN_SRC sh
|
|
|
|
npm install -g solium
|
|
|
|
#+END_SRC
|
|
|
|
|
2018-05-25 19:10:49 +02:00
|
|
|
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~
|
2018-05-17 21:00:30 -05:00
|
|
|
|
|
|
|
#+BEGIN_SRC emacs-lisp
|
2018-05-25 19:10:49 +02:00
|
|
|
(setq flycheck-solidity-solium-soliumrcfile "~/.soliumrc.json")
|
2018-05-17 21:00:30 -05:00
|
|
|
#+END_SRC
|
|
|
|
|
|
|
|
* TODO
|
|
|
|
+ Snippets
|