Add zunit file template & file extension

This commit is contained in:
Henrik Lissner 2017-10-06 02:35:26 +02:00
parent b0c26ea4dd
commit 1e95dc530a
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 8 additions and 1 deletions

View file

@ -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))))

View file

@ -0,0 +1,5 @@
#!/usr/bin/env zunit
@test '...' {
$0
}

View file

@ -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))