some improvments

This commit is contained in:
Sameer Rahmani 2010-12-29 21:49:43 +03:30
parent 28f1ae2531
commit 3208e9a440
3 changed files with 24 additions and 0 deletions

1
TODO
View File

@ -4,5 +4,6 @@
* Build the debian folder nad required files for deb packages
* Escape project name for a unix name "shell-quote-argument"
* Add a config file for user to put his/her configuration there
* Disable EDE and other unused menu
* Allow templates file to store in subdirectories so new project can
have subdirectories

View File

@ -96,6 +96,7 @@
)
)
(defun insert-license ()
"Return the prepared license string."
(if project-license

View File

@ -45,6 +45,23 @@
(new-project)
)
(defun compile ()
"Run the make command and return the putput"
(interactive)
(let (output)
(setq output (shell-command-to-string "make"))
(message output)
)
)
(defun init-key-bindings ()
"Initialize the required key bindings for C/C++ project."
(define-key c-mode (kbd "\C-c \C-c") 'compile)
)
(defun generic-c () "Create a generic type C project"
(interactive)
(c-new-project)
@ -60,5 +77,10 @@
(project/write-dest-file cur template-data)
)
)
(cd project-path)
(init-key-bindings)
(find-file (concat unix-project-name ".c"))
)
(init-menus)