Add zunit file template & file extension
This commit is contained in:
parent
b0c26ea4dd
commit
1e95dc530a
3 changed files with 8 additions and 1 deletions
|
@ -106,5 +106,6 @@
|
||||||
;; Slim
|
;; Slim
|
||||||
("/\\(index\\|main\\)\\.slim$" "__" slim-mode)
|
("/\\(index\\|main\\)\\.slim$" "__" slim-mode)
|
||||||
;; Shell scripts
|
;; Shell scripts
|
||||||
("\\.z?sh$" "__" sh-mode))))
|
("\\.z?sh$" "__" sh-mode)
|
||||||
|
("\\.zunit$" "__zunit" sh-mode))))
|
||||||
|
|
||||||
|
|
5
modules/feature/file-templates/templates/sh-mode/__zunit
Normal file
5
modules/feature/file-templates/templates/sh-mode/__zunit
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/usr/bin/env zunit
|
||||||
|
|
||||||
|
@test '...' {
|
||||||
|
$0
|
||||||
|
}
|
|
@ -14,6 +14,7 @@
|
||||||
|
|
||||||
(def-package! sh-script ; built-in
|
(def-package! sh-script ; built-in
|
||||||
:mode ("\\.zsh$" . sh-mode)
|
:mode ("\\.zsh$" . sh-mode)
|
||||||
|
:mode ("\\.zunit$" . sh-mode)
|
||||||
:mode ("/bspwmrc$" . sh-mode)
|
:mode ("/bspwmrc$" . sh-mode)
|
||||||
:init
|
:init
|
||||||
(add-hook! sh-mode #'(flycheck-mode highlight-numbers-mode))
|
(add-hook! sh-mode #'(flycheck-mode highlight-numbers-mode))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue