Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 36 lines (23 sloc) 1.829 kB
4f8367f Added a readme
myfreeweb authored
1 # startproject #
7185e9f @myfreeweb Update README.md
authored
2 Simplest Emacs project starter for all you framework people — Django, Sproutcore, whatever — they have start commands. Really, the name „startproject“ is from Django‘s script :-)
4f8367f Added a readme
myfreeweb authored
3
7185e9f @myfreeweb Update README.md
authored
4 It just runs framework‘s **start command** (or just a simple **tar** command extracting your project skeleton... or a **mkdir** if you‘re not a framework person) and opens the newly created project with **dired**. Also it can initialize version control (bzr/hg/git) and open **vc-dir**.
b65dd78 Opening dired
myfreeweb authored
5
6 Requires a modern **Emacs** and **ido**. ido usually works out of the box, *at least* with GNU Emacs from Ubuntu repos and Aquamacs for Mac.
4f8367f Added a readme
myfreeweb authored
7
8 ## How to use it ##
9 - require it in your init file (.emacs, config.el, or something else if you‘re very creative)
10
11 `(add-to-list 'load-path "~/Dropbox/emacs/startproject")
12 (require 'startproject)`
13 - bind „start-project“ to some key (I don‘t think you want to M-x all the time), like this:
14
1b33da1 Fixed some bugs in readme
myfreeweb authored
15 `(global-set-key (kbd "C-x p") 'start-project)`
730dec1 FAQ in readme
myfreeweb authored
16 - add your own starters if you need them, for example, [HTML5 Boilerplate](http://html5boilerplate.com):
4f8367f Added a readme
myfreeweb authored
17
730dec1 FAQ in readme
myfreeweb authored
18 `(puthash "html5" "tar -xvf ~/Dropbox/webdev/html5-boilerplate-0.9.x.tar.gz" project-starters)`
19 - change the work directory — I‘m not sure if you want your projects in ~/. **Don‘t forget the slashes!**:
4f8367f Added a readme
myfreeweb authored
20
1b33da1 Fixed some bugs in readme
myfreeweb authored
21 `(setq projects-dir "~/Dropbox/work/")`
4f1a63e @myfreeweb Update README.md
authored
22 - enjoy it!
730dec1 FAQ in readme
myfreeweb authored
23
24 ## FAQ ##
25 - Q: It says something about wrong paths... What the?
26
27 A: You forgot slashes in the projects-dir.
28 - Q: Why I have to add a command for my favorite framework by hand? It‘s popular.
29
7185e9f @myfreeweb Update README.md
authored
30 A: Because I‘m too lazy to google these commands for all the mainstream frameworks. Feel free to open a pull request.
f9dedcb Opening vc-dir, readme updates
myfreeweb authored
31 - Q: I don‘t need to open vc-dir! Can I turn it off?
32
33 A: Of course! Just put it in your init file:
34 `(setq sp-open-vc-dir nil)`
730dec1 FAQ in readme
myfreeweb authored
35
Something went wrong with that request. Please try again.