Skip to content

emacsmirror/sol-mode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Sol-mode

This package provides a GNU Emacs major mode for editing Solidity code. Solidity is a statically-typed curly-braces programming language designed for developing smart contracts that run on Ethereum.

Currently this package provides:

  • Font locking
  • Indentation
  • Imenu support
  • Treesit structured navigation and "things"

Usage

This package is currently published to MELPA.

;; Add MELPA package repository.
(add-to-list 'package-archives
             '("melpa" . "https://melpa.org/packages/"))

;; Enable the `sol-mode' package.
(use-package sol-mode
  :ensure t
  :mode "\\.sol\\'")

Tree-Sitter Grammar

This package requires the JoranHonig/tree-sitter-solidity grammar to be installed. A recipe is provided to make installing easier: M-x solidity-install-grammar.

Acknowledgments

This package took inspiration and borrowed from the following:

About

Major mode for editing Solidity code

Resources

License

Stars

Watchers

Forks

Sponsor this project

  •  

Packages

 
 
 

Contributors