Changes between Version 18 and Version 19 of Emacs


Ignore:
Timestamp:
Oct 1, 2010, 4:45:23 AM (14 years ago)
Author:
Anatoly Kamchatnov
Comment:

Fixed ToC, indicated current statuses of the modes

Legend:

Unmodified
Added
Removed
Modified
  • Emacs

    v18 v19  
    66 * [http://code.djangoproject.com/wiki/Emacs#django-mode django-mode]
    77 * [http://code.djangoproject.com/wiki/Emacs#django-html-mode django-html-mode]
    8  * [http://code.djangoproject.com/wiki/Emacs#Improvedversion Improved version]
     8 * [http://code.djangoproject.com/wiki/Emacs#Yasnippet Yasnippet]
    99
    10 == django-html-mumamo-mode == (works well)
     10== django-html-mumamo-mode ==
     11
     12'''Status: works well.'''
    1113
    1214MUltiple MAjor MOde is an extension for Emacs that allows one buffer to use multiple modes for different stretches of text. It's bundled with [http://ourcomments.org/Emacs/nXhtml/doc/nxhtml.html nXhtml], and now includes a django-html-mumamo-mode for Django templates.
     
    4648
    4749
    48 = Yasnippet =
     50== django-mode ==
     51
     52'''Status: old, download link does not work.'''
     53
     54[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).
     55
     56The most obvious benefit that it provides at the moment is syntax highlighting of variables and blocks.
     57
     58It 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.
     59
     60You can get it here: http://unicoders.org/code/hacks/trunk/django-mode.el (link dead)
     61
     62Put it somewhere where Emacs can find it then add this line to your `.emacs` file:
     63
     64{{{
     65(load "django-mode.el")
     66}}}
     67
     68This is a sample screenshot of the results with the “Charcoal Black” [http://www.emacswiki.org/cgi-bin/wiki?ColorTheme color theme]:
     69
     70{{{
     71#!html
     72<img src="http://code.djangoproject.com/attachment/wiki/Emacs/emacs-django-template.png?format=raw" alt="Screenshot of Django template in GNU Emacs, Mac OS X">
     73}}}
     74
     75== django-html-mode ==
     76
     77'''Status: unmaintained.'''
     78
     79There is another emacs django template mode. It is derived mode from html (sgml).
     80
     81There is an updated and improved version of this mode on: [https://code.edge.launchpad.net/~eopadoan/+junk/django-html-mode]
     82 * '''Updated the supported tags''' to current (django 1.0b3).
     83 * Added '''auto-close''' command ( {{{C-c ]}}} ).
     84
     85To get, run on a shell:
     86{{{
     87bzr branch lp:~eopadoan/+junk/django-html-mode
     88}}}
     89
     90Note: The django-html-mode code does not appear to support template tag indentation.
     91
     92
     93== Yasnippet ==
    4994
    5095If you are using [http://code.google.com/p/yasnippet/ Yasnippet], you can get the [https://edge.launchpad.net/django-mode django-mode] with many useful snippets.
     
    76121
    77122Also, if you use django-html-mumamo-mode, you should not use Ysnippet since the automatic template tag indenting will not function correctly with the Ysnippet django-html-mode and django-mode code loaded.
    78 
    79 == django-mode == (OLD -- download link does not work)
    80 
    81 [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).
    82 
    83 The most obvious benefit that it provides at the moment is syntax highlighting of variables and blocks.
    84 
    85 It 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.
    86 
    87 You can get it here: http://unicoders.org/code/hacks/trunk/django-mode.el (link dead)
    88 
    89 Put it somewhere where Emacs can find it then add this line to your `.emacs` file:
    90 
    91 {{{
    92 (load "django-mode.el")
    93 }}}
    94 
    95 This is a sample screenshot of the results with the “Charcoal Black” [http://www.emacswiki.org/cgi-bin/wiki?ColorTheme color theme]:
    96 
    97 {{{
    98 #!html
    99 <img src="http://code.djangoproject.com/attachment/wiki/Emacs/emacs-django-template.png?format=raw" alt="Screenshot of Django template in GNU Emacs, Mac OS X">
    100 }}}
    101 
    102 == django-html-mode ==
    103 
    104 There is another emacs django templete mode. It is derived mode from html(sgml).
    105 
    106 === Improved version ===
    107 
    108 There is an updated and improved version of this mode on: [https://code.edge.launchpad.net/~eopadoan/+junk/django-html-mode]
    109  * '''Updated the supported tags''' to current (django 1.0b3).
    110  * Added '''auto-close''' command ( {{{C-c ]}}} ).
    111 
    112 To get, run on a shell:
    113 {{{
    114 bzr branch lp:~eopadoan/+junk/django-html-mode
    115 }}}
    116 
    117 Note: The django-html-mode code does not appear to support template tag indentation.
Back to Top