comparison .elisp/settings/40.modes.el @ 111:6a64e61359b7

Unbreaks this file, but I am not sure if the django stuff is working properly.
author Augie Fackler <durin42@gmail.com>
date Thu, 18 Jun 2009 17:07:55 -0500
parents 8e04d9d41a55
children 85d912e123af
comparison
equal deleted inserted replaced
110:6ee60f93f4b7 111:6a64e61359b7
23 23
24 (autoload 'js2-mode "js2" nil t) 24 (autoload 'js2-mode "js2" nil t)
25 (add-to-list 'auto-mode-alist '("\\.js$" . js2-mode)) 25 (add-to-list 'auto-mode-alist '("\\.js$" . js2-mode))
26 (add-hook 'js2-mode-hook 'af-tab-fix) 26 (add-hook 'js2-mode-hook 'af-tab-fix)
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 (define-key ruby-mode-map (kbd "RET") 'reindent-then-newline-and-indent) 30 (local-set-key (kbd "RET")
31 'reindent-then-newline-and-indent)))
31 32
32 (require 'django-html-mode) 33 (require 'django-html-mode)
33 ;; I think I probably just always want it in django mode for now 34 ;; 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 (add-to-list 'auto-mode-alist '("\\.html$'" . django-html-mode))
35 (define-key django-html-mode-map (kbd "RET") 'reindent-then-newline-and-indent) 36 (add-hook 'django-html-mode-hook '(lambda ()
37 (local-set-key (kbd "RET")
38 'reindent-then-newline-and-indent)))
36 39
37 (defun af-python-mode-hook () 40 (defun af-python-mode-hook ()
38 ; highlight tabs in Python 41 ; highlight tabs in Python
39 (make-variable-buffer-local 'font-lock-mode-hook) 42 (make-variable-buffer-local 'font-lock-mode-hook)
40 (add-hook 'font-lock-mode-hook 'show-ws-highlight-tabs) 43 (add-hook 'font-lock-mode-hook 'show-ws-highlight-tabs)