Change template file prefix from @@ to __

This commit is contained in:
Henrik Lissner 2015-11-06 02:21:45 -05:00
parent c5a6fa1e3b
commit ff716616b6
48 changed files with 44 additions and 44 deletions

View file

@ -0,0 +1,12 @@
# `(progn
(setq-local pkgs (s-split "/" (s-chop-prefix (concat (my/project-root) "lib/") (f-no-ext buffer-file-name)) t))
(setq-local pkgs-p (eq (length pkgs) 1))
(setq-local pkg-module (s-replace " " "::" (s-titleized-words (if pkgs-p (-first-item pkgs) (s-join " " (-butlast pkgs))))))
(concat "lib/" (f-filename buffer-file-name)))`
module `pkg-module`
`(when pkgs-p " VERSION='0.0.1'\n\n")``(concat " class " (if pkgs-p "<< self" (s-capitalize (-last-item pkgs))))`
`%`${0:# Code here}
end
end