2017-02-11 07:00:31 -05:00
|
|
|
# `(progn
|
2017-12-09 14:40:14 -05:00
|
|
|
(setq-local pkgs (split-string (string-remove-prefix (concat (doom-project-root) "lib/") (file-name-sans-extension buffer-file-name)) "/" t))
|
2017-02-11 07:00:31 -05:00
|
|
|
(setq-local pkgs-p (eq (length pkgs) 1))
|
2017-12-09 14:40:14 -05:00
|
|
|
(setq-local pkg-module (replace-regexp-in-string " " "::" (capitalize (if pkgs-p (car pkgs) (string-join (butlast pkgs) " "))) nil t))
|
2017-02-11 07:00:31 -05:00
|
|
|
|
2017-02-28 18:04:02 -05:00
|
|
|
(concat "lib/" (file-name-nondirectory buffer-file-name)))`
|
2017-02-11 07:00:31 -05:00
|
|
|
|
|
|
|
module `pkg-module`
|
2017-12-09 14:40:14 -05:00
|
|
|
`(when pkgs-p " VERSION='0.0.1'\n\n")``(concat " class " (if pkgs-p "<< self" (capitalize (car (last pkgs)))))`
|
2017-02-11 07:00:31 -05:00
|
|
|
`%`${0:# Code here}
|
|
|
|
end
|
|
|
|
end
|