feature/file-templates: remove f.el references
This commit is contained in:
parent
122ddc5a12
commit
da663aa5da
9 changed files with 13 additions and 25 deletions
|
@ -1,12 +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 (s-split "/" (s-chop-prefix (concat (doom-project-root) "lib/") (file-name-sans-extension 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))))))
|
||||
(setq-local pkg-module (s-replace " " "::" (s-titleized-words (if pkgs-p (car pkgs) (s-join " " (butlast pkgs))))))
|
||||
|
||||
(concat "lib/" (f-filename buffer-file-name)))`
|
||||
(concat "lib/" (file-name-nondirectory 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))))`
|
||||
`(when pkgs-p " VERSION='0.0.1'\n\n")``(concat " class " (if pkgs-p "<< self" (s-capitalize (car (last pkgs)))))`
|
||||
`%`${0:# Code here}
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue