Add Solidity Template
Add Trigger and basic file template
This commit is contained in:
parent
f471ef3fff
commit
5ec74fdffb
2 changed files with 13 additions and 1 deletions
|
@ -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.")
|
||||
|
|
10
modules/feature/file-templates/templates/solidity-mode/__sol
Normal file
10
modules/feature/file-templates/templates/solidity-mode/__sol
Normal file
|
@ -0,0 +1,10 @@
|
|||
# -*- mode: snippet -*-
|
||||
# group: file templates
|
||||
# contributor: Edmund Miller
|
||||
# name: solidity template
|
||||
# --
|
||||
pragma solidity ^0.4.22;
|
||||
|
||||
contract $0 {
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue