mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Add Solidity
Add basic Solidity module
This commit is contained in:
committed by
Edmund Miller
parent
f16aa539c7
commit
3193e7a8a7
31
modules/lang/solidity/README.org
Normal file
31
modules/lang/solidity/README.org
Normal file
@ -0,0 +1,31 @@
|
||||
#+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
|
Reference in New Issue
Block a user