Thanks to visit codestin.com
Credit goes to github.com

Skip to content

hiroshi1tanaka/emacs-solidity

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 

Repository files navigation

Emacs Solidity Mode

A simple language mode for the Solidity language. It is a constant work in progress as the language itself also progresses. For information about Solidity check the Tutorial and the Features wiki pages.

Installation

You can simply load the file in your emacs but the recommended way to install it is either via el-get or MELPA.

El-get

If you don’t know how to use el-get you can find more information on its webpage. You can obtain it by using el-get-install solidity-mode.

Melpa

You can also obtain solidity-mode from Melpa as can be seen here.

Configuration

By default solidity-mode associates itself with any files ending in .sol.

If using el-get then you should have a specific package initializing lisp file. If not then you can put these anywhere in your init.el.

Provide path to solc binary

At the moment of writing this guide ethereum is not yet released so everything is built from source and not installed on a user’s system. You will probably have to provide the path to the solc binary executable. Here is an example:

(setq solidity-solc-path "/home/lefteris/ew/cpp-ethereum/build/solc/solc")

[Optional] Flycheck interface

Solidity mode can also interface with flycheck if you have it. Simply add solidity-checker to the list of active flycheck checkers.

(require 'flycheck)
(require 'solidity-mode)
(add-to-list 'flycheck-checkers 'solidity-checker)

Features

  • Syntax highlighting
  • Indentation
  • On the fly syntax checking with flycheck

More features are planned, which would interface with the solidity libraries.

About

Lefteris's EMACS extension for Solidity.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Emacs Lisp 100.0%