canonical-django team mailing list archive
-
canonical-django team
-
Mailing list archive
-
Message #00032
Editing Django templates in Emacs
If you try to edit Django templates in Emacs' SGML mode, you'll notice
it doesn't know to indent stuff inside Django tags, like this:
{% if say_hello %}
<p>Hello, world!</p>
{% endif %}
I just learned about nXhtml for Emacs. It includes MuMaMo (multiple
major modes) support, and special support for Django templates.
`M-x django-nxhtml-mumamo-mode` to enable, and you'll see HTML, CSS,
JavaScript, and Django template sections all highlighted properly.
I recommend getting rev 633 from the repo, that's the last stable
"release."
Still trying to find where to set the tab width...
-David
Follow ups