Closed EMayej closed 6 years ago
https://github.com/mineo/yatemplate/blob/d8b6a17ae1c91cfeaea8f502a5d0292197b86f21/yatemplate.el#L109
This searches ~/.emacs.d/templatesabc/*, ~/.emacs.d/templatesxyz/* along with ~/.emacs.d/templates/*, because yatemplate-dir is ~/.emacs.d/templates
~/.emacs.d/templatesabc/*
~/.emacs.d/templatesxyz/*
~/.emacs.d/templates/*
yatemplate-dir
~/.emacs.d/templates
We could use
(sort (file-expand-wildcards (concat (file-name-as-directory yatemplate-dir) "*")) 'string<)
to avoid that.
We can add another search for "*/" if we want to support files under sub-directory of yatemplate-dir
https://github.com/mineo/yatemplate/blob/d8b6a17ae1c91cfeaea8f502a5d0292197b86f21/yatemplate.el#L109
This searches
~/.emacs.d/templatesabc/*
,~/.emacs.d/templatesxyz/*
along with~/.emacs.d/templates/*
, becauseyatemplate-dir
is~/.emacs.d/templates
We could use
to avoid that.
We can add another search for "*/" if we want to support files under sub-directory of
yatemplate-dir