2022-01-23 20:38:27 +01:00
|
|
|
← [[doom-module-index:][Back to module index]] ! [[doom-module-issues:::lang solidity][Issues]] ↖ [[doom-repo:tree/develop/modules/lang/solidity/][Github]] ± [[doom-suggest-edit:][Suggest edits]] ? [[doom-help-modules:][Help]]
|
2021-10-16 01:28:32 +02:00
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
#+TITLE: :lang solidity
|
|
|
|
#+SUBTITLE: Do you need a blockchain? No.
|
|
|
|
#+CREATED: May 19, 2018
|
|
|
|
#+SINCE: 21.12.0 (#599)
|
2018-05-17 21:00:30 -05:00
|
|
|
|
2021-10-16 01:28:32 +02:00
|
|
|
* Description :unfold:
|
|
|
|
This module adds [[https://github.com/ethereum/solidity][Solidity]] support to Doom Emacs.
|
2018-05-17 21:00:30 -05:00
|
|
|
|
2021-10-16 01:28:32 +02:00
|
|
|
- Syntax-checking ([[doom-package:][flycheck]])
|
|
|
|
- Code completion ([[doom-package:][company-solidity]])
|
|
|
|
- Gas estimation (~C-c C-g~)
|
2018-05-17 21:00:30 -05:00
|
|
|
|
2021-10-16 01:28:32 +02:00
|
|
|
** Maintainers
|
|
|
|
*This module needs a maintainer.* [[doom-contrib-maintainer:][Become a maintainer?]]
|
2018-05-25 19:10:49 +02:00
|
|
|
|
2021-10-16 01:28:32 +02:00
|
|
|
** Module flags
|
|
|
|
/This module has no flags./
|
2018-05-25 19:10:49 +02:00
|
|
|
|
2021-10-16 01:28:32 +02:00
|
|
|
** Packages
|
|
|
|
- [[doom-package:][company-solidity]] if [[doom-module:][:completion company]]
|
|
|
|
- [[doom-package:][solidity-flycheck]] if [[doom-module:][:checkers syntax]]
|
|
|
|
- [[doom-package:][solidity-mode]]
|
|
|
|
|
|
|
|
** Hacks
|
|
|
|
/No hacks documented for this module./
|
|
|
|
|
|
|
|
** TODO Changelog
|
|
|
|
# This section will be machine generated. Don't edit it by hand.
|
|
|
|
/This module does not have a changelog yet./
|
2018-05-25 19:10:49 +02:00
|
|
|
|
2021-10-16 01:28:32 +02:00
|
|
|
* Installation
|
|
|
|
[[id:01cffea4-3329-45e2-a892-95a384ab2338][Enable this module in your ~doom!~ block.]]
|
|
|
|
|
|
|
|
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]]
|
2018-05-25 19:10:49 +02:00
|
|
|
|
|
|
|
If both are enabled *Solc* is run first, then *Solium* if *Solc* catches no
|
|
|
|
errors.
|
|
|
|
|
|
|
|
** Solc
|
2021-10-16 01:28:32 +02:00
|
|
|
#+begin_src sh
|
2018-05-17 21:00:30 -05:00
|
|
|
npm install -g solc
|
2021-10-16 01:28:32 +02:00
|
|
|
#+end_src
|
2018-05-17 21:00:30 -05:00
|
|
|
|
2018-05-25 19:10:49 +02:00
|
|
|
** Solium
|
2021-10-16 01:28:32 +02:00
|
|
|
#+begin_src sh
|
2018-05-17 21:00:30 -05:00
|
|
|
npm install -g solium
|
2021-10-16 01:28:32 +02:00
|
|
|
#+end_src
|
2018-05-17 21:00:30 -05:00
|
|
|
|
2021-10-16 01:28:32 +02:00
|
|
|
By default *solium* looks for =.soliumrc.json= in the project directory, but you
|
|
|
|
can set it to your own =.soliumrc.json= with:
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
;; in $DOOMDIR/config.el
|
2018-05-25 19:10:49 +02:00
|
|
|
(setq flycheck-solidity-solium-soliumrcfile "~/.soliumrc.json")
|
2021-10-16 01:28:32 +02:00
|
|
|
#+end_src
|
|
|
|
|
|
|
|
* TODO Usage
|
|
|
|
#+begin_quote
|
|
|
|
🔨 This module has no usage documentation yet. [[doom-contrib-module:][Write some?]]
|
|
|
|
#+end_quote
|
|
|
|
|
|
|
|
* TODO Configuration
|
|
|
|
#+begin_quote
|
|
|
|
🔨 This module has no configuration documentation yet. [[doom-contrib-module:][Write some?]]
|
|
|
|
#+end_quote
|
|
|
|
|
|
|
|
* Troubleshooting
|
|
|
|
/There are no known problems with this module./ [[doom-report:][Report one?]]
|
|
|
|
|
|
|
|
* Frequently asked questions
|
|
|
|
/This module has no FAQs yet./ [[doom-suggest-faq:][Ask one?]]
|
2018-05-17 21:00:30 -05:00
|
|
|
|
2021-10-16 01:28:32 +02:00
|
|
|
* TODO Appendix
|
|
|
|
#+begin_quote
|
|
|
|
🔨 This module has no appendix yet. [[doom-contrib-module:][Write one?]]
|
|
|
|
#+end_quote
|