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 ;; Shell scripts
("\\.zunit$" :trigger "__zunit" :mode sh-mode) ("\\.zunit$" :trigger "__zunit" :mode sh-mode)
(fish-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 "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 symbol or regexp string. The CDR is a plist. See `doom--set:file-template' for
more information.") 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 {
}