Sorry about asking specially emacs. I have been using emacs for past 6
months on daily 2 hour basis. rest of the time, I use Visual Studio in
my day job.
1. I often found missing the debug feature closely like Visual
Studio.
2. I am not sure how to use the mako syntax high lighting in emacs
3. I run the paster shell on terminal (outside emacs, use gedit to
view the log file)
Do you have any productivity tips or tricks using emacs for developing
pylons application?
Once again, I am sorry if the question is off topic.
Regards,
Krish
I can't speak to this since I don't know what this Visual Studio
feature does. I don't run any python debuggers from Emacs. For that
matter, I tend not to use the python debugger.
> 2. I am not sure how to use the mako syntax high lighting in emacs
My emacs customization is pretty thin:
You want to use mmm-mako. Copy mmm-mako.el to:
$emacs/site-lisp/mmm-mako/
And put this into your .emacs:
(load-library "mmm-mako")
(add-to-list 'auto-mode-alist '("\\.mako\\'" . html-mode))
(mmm-add-mode-ext-class 'html-mode "\\.mako\\'" 'mako)
There's no support for Mako (I still have a lot of mako templates). I
just use html-mode:
(add-to-list 'auto-mode-alist '("\\.myt\\'" . html-mode))
I also like to enable javascript-mode for .js:
(autoload 'javascript-mode "javascript" nil t)
(add-to-list 'auto-mode-alist '("\\.js\\'" . javascript-mode))
> 3. I run the paster shell on terminal (outside emacs, use gedit to
> view the log file)
Me too - I prefer to use ipython in a terminal to running inside
emacs. I don't know if there is a key combo to launch paster shell in
an emacs shell, but in general, I don't like emacs shell. Emacs grabs
too many Control key combos!
--
Ross Vandegrift
ro...@kallisti.us
"If the fight gets hot, the songs get hotter. If the going gets tough,
the songs get tougher."
--Woody Guthrie
Hi Krish,
About the debug feature, pylons have a very good one available throug
your 'web' application.
You can have a look to mmm-mako (http://www.makotemplates.org/trac)
for syntax highlighting and some keybindings.
You can use 'paster shell' in a shell buffer in emacs, but if you are
using 'ipython' as interpreter you will have to deal with it.
Jean.
--
Jean Schurger
http://schurger.org
GPG: http://schurger.org/jean.asc