GNU bug report logs - #77593
(Proof-of-Concept) Create projects with project templates

Previous Next

Package: emacs;

Reported by: Elijah Gabe Pérez <eg642616 <at> gmail.com>

Date: Mon, 7 Apr 2025 02:38:02 UTC

Severity: normal

To reply to this bug, email your comments to 77593 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#77593; Package emacs. (Mon, 07 Apr 2025 02:38:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Elijah Gabe Pérez <eg642616 <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 07 Apr 2025 02:38:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Elijah Gabe Pérez <eg642616 <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: (Proof-of-Concept) Create projects with project templates
Date: Sun, 06 Apr 2025 20:37:11 -0600
[Message part 1 (text/plain, inline)]
Hello, i want to share this package concept for create projects with
templates, this idea is similar to what EDE and skeletor.el (from MELPA)
offers.

The project template system aims to be simple to use for the user
and simple for people who wants to create new project templates.

New project templates are created in this way:

  |-- DIRECTORY_WHERE_TEMPLATES_LIVE
  | |-- PROJECT_TYPE_TEMPLATE_DIR
  | | |-- PROJECT_FILE...
  | | |-- PROJECT_FILE_2...
  | | |-- `project-template-info'
  | |-- ANOTHER_PROJECT_TYPE_TEMPLATE_DIR
  | | |-- ANOTHER_PROJECT_FILE...
  | | |-- ANOTHER_PROJECT_FILE_2...
  | | |-- `project-template-info'

The templates are created as real directories and files that should be
stored in a directory (DIRECTORY_WHERE_TEMPLATES_LIVE) which should
contain a file (project-template-info) that specifies project type (for
prompt to user which project type want to create); also offers
integration with project.el (for indexing the project created to project
list) and vc.el (if user wants use a versions control in the created
project).

The `project-template-info' scheme is something like this:
  ;;; -*- lisp-data -*-
  ;;; This file contains project type to use in project-templates.
  (:type "Make")

For create a new project the user will need to run
`project-templates-create-new-project' command which will prompt for:
 - Project type (it will be a list which contains all the project templates fetched)
 - Project name
 - Version Control to use (It preselect `None')
 - Add project to projects list (project.el)
 - Directory to where create the project

I made a test concept (it don't create a real project yet).
In case you want to try it.

[0001-Add-project-creation-capabilities-with-project-templ.patch (text/x-patch, attachment)]
[Message part 3 (text/plain, inline)]
-- 
                                          - E.G via GNU Emacs and Org.

This bug report was last modified 6 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.