comparison .elisp/settings/40.modes.el @ 107:16b57e1fc23d

Add django-html-mode.
author Augie Fackler <durin42@gmail.com>
date Thu, 11 Jun 2009 16:30:14 -0500
parents 16472f9a3543
children 8e04d9d41a55
comparison
equal deleted inserted replaced
106:398b9c3a3a0b 107:16b57e1fc23d
27 27
28 (add-hook 'ruby-mode-hook (lambda () 28 (add-hook 'ruby-mode-hook (lambda ()
29 (af-tab-fix) 29 (af-tab-fix)
30 (local-set-key "\C-m" 'newline-and-indent))) 30 (local-set-key "\C-m" 'newline-and-indent)))
31 31
32 (require 'django-html-mode)
33 ;; I think I probably just always want it in django mode for now
34 (add-to-list 'auto-mode-alist '("\\.html$'" . django-html-mode))
35
32 (defun af-python-mode-hook () 36 (defun af-python-mode-hook ()
33 ; highlight tabs in Python 37 ; highlight tabs in Python
34 (make-variable-buffer-local 'font-lock-mode-hook) 38 (make-variable-buffer-local 'font-lock-mode-hook)
35 (add-hook 'font-lock-mode-hook 'show-ws-highlight-tabs) 39 (add-hook 'font-lock-mode-hook 'show-ws-highlight-tabs)
36 (make-variable-buffer-local 'python-indent) 40 (make-variable-buffer-local 'python-indent)