chrisbarrett / skeletor.el

Powerful project skeletons for Emacs
GNU General Public License v3.0
126 stars 17 forks source link

Use skeletor as a base for other packages #38

Open tobiasBora opened 6 years ago

tobiasBora commented 6 years ago

Hello,

First, thank you for your great tool. I'm quite new to elisp, so my question may be stupid: I'd like to know if there is an easy way to use skeletor inside another package to create a skeletor-create-project-at-like function that would be specific to my package, and that would contain only it's own set of template (these template would be independent of the one defined by the user and the default skeletor templates). One dirty solution would be to clone this repo, and just change the templates, but it's not really fair, so I'd like to know if you have a better solution for me.

Thank you!

chrisbarrett commented 6 years ago

Hey there!

What are you trying to implement? Do you want a command that prompts you to instantiate from only a limited set of templates? Or something else?

tobiasBora commented 6 years ago

I guess something like that yes. The idea is that I'm thinking to do an android mode that would allow the user to choose a template in a given set of template that are in a given folder. Because there are several kind of android projects, I also would like to be able to put these template in different folders, for example if the user wants to set up a project for a mobile, a TV, a watch... I would have one folder for the mobile templates, one folder for the TV templates, one folder for the watch templates... So basically a function like (skeletor-create-project-from-at <templates folder>) would be great.

Thank you!