Changeset 107

Show
Ignore:
Timestamp:
11/09/07 16:55:31 (14 months ago)
Author:
verbosus
Message:

django-mode.el: Added Patrick Quinn's patch for enabling HTML font-lock in django mode

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • hacks/trunk/django-mode.el

    r36 r107  
    22; by Antonio Cavedoni <http://cavedoni.com/> 
    33; 
    4 ; Hacked together following instructions from the rather awesome:  
     4; Hacked together following instructions from the awesome:  
    55; http://two-wugs.net/emacs/mode-tutorial.html 
     6;  
     7; Acknowledgements: 
     8;  
     9;   - Patrick Quinn <http://www.patrickquinn.net/> 
     10;     for the font-locking patch for HTML syntax 
     11; 
    612 
    713(defvar django-mode-hook nil) 
     
    2329   "Minimal highlighting expressions for Django mode")) 
    2430 
    25 (defvar django-font-lock-keywords django-font-lock-keywords-1 
     31(defvar django-font-lock-keywords  
     32  (append html-font-lock-keywords django-font-lock-keywords-1)  
    2633  "Default highlighting expressions for Django mode") 
    2734 
     
    3744  (set-syntax-table django-mode-syntax-table) 
    3845  (use-local-map django-mode-map) 
     46  (html-mode) 
    3947  (set (make-local-variable 'font-lock-defaults) '(django-font-lock-keywords)) 
    4048  (setq major-mode 'django-mode)