Emacs Templates
Since writing brand new wtypes and wparts is a boring task and it can be partly automated, we decided to write some Emacs templates to help developers in doing it.
Download
The Emacs Templates come as a .el file that can be downloaded here.
Install
- Create a folder in your home directory or in your preferred place and give it a name ("erlangweb" sounds like a good choice)
- Copy the provided .el file into that folder
- Edit your .emacs file, by adding the following lines:
(setq load-path (cons "PATH/TO/FOLDER" load-path)) (load "erlang-web-template")
(Remember to change the PATH/TO/FOLDER with the path to the folder that you've just created)
- Restart Emacs
Usage
- To create your automated wpart, just type:
META-x tempo-template-erlang-web-wpart
- To create your automated wtype, just type:
META-x tempo-template-erlang-web-wtype
- When prompted, just give the name for your wpart/wtype.
