Changes between Initial Version and Version 1 of Emacs


Ignore:
Timestamp:
Aug 30, 2006, 10:57:33 AM (18 years ago)
Author:
Antonio Cavedoni
Comment:

page created

Legend:

Unmodified
Added
Removed
Modified
  • Emacs

    v1 v1  
     1[http://cavedoni.com/ I]’ve started hacking on an editing mode for Django templates in Emacs. (Please note that this is the first time I ever do Emacs Lisp, and that what I currently have is nothing more than a start. If you can come up with fixes or improvements, these are much appreciated).
     2
     3The most obvious benefit that it provides at the moment is syntax highlighting of  variables and blocks.
     4
     5It knows about the Django default tag names and uses a different coloring for comments. At the moment it is configured to automatically kick-in for files with extension `.djhtml` (I made it up that way, in order not to clash with other defaults one may have with .html files). Of course you can invoke it with `M-x django-mode` in any buffer.
     6
     7You can get it here: http://unicoders.org/code/hacks/trunk/django-mode.el
     8
     9Put it somewhere where Emacs can find it then add this line to your `.emacs` file:
     10
     11{{{
     12(load "django-mode.el")
     13}}}
     14
     15This is a sample screenshot of the results with the “Charcoal Black” [http://www.emacswiki.org/cgi-bin/wiki?ColorTheme color theme]:
     16
     17http://cavedoni.com/2006/08/emacs-django-template.png
Back to Top