Merge pull request #699 from Emiller88/feature/solidity-template

Add Solidity Template
This commit is contained in:
Henrik Lissner 2018-06-19 13:49:05 +02:00 committed by GitHub
commit ae6c3cacf2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 1 deletions

View file

@ -91,7 +91,9 @@ don't have a :trigger property in `+file-templates-alist'.")
;; Shell scripts
("\\.zunit$" :trigger "__zunit" :mode sh-mode)
(fish-mode)
(sh-mode))
(sh-mode)
;; Solidity
(solidity-mode :trigger "__sol"))
"An alist of file template rules. The CAR of each rule is either a major mode
symbol or regexp string. The CDR is a plist. See `doom--set:file-template' for
more information.")

View file

@ -0,0 +1,10 @@
# -*- mode: snippet -*-
# group: file templates
# contributor: Edmund Miller
# name: solidity template
# --
pragma solidity ^0.4.22;
contract $0 {
}