Add Solidity Template

Add Trigger and basic file template
This commit is contained in:
Edmund Miller 2018-06-18 20:29:37 -05:00
parent f471ef3fff
commit 5ec74fdffb
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 {
}