Mercurial > dotfiles
comparison .elisp/settings/40.modes.el @ 116:85d912e123af
More ruby fixes, set html.erb to be some non-useless mode.
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Fri, 26 Jun 2009 11:39:39 -0500 |
parents | 6a64e61359b7 |
children | e83373ab1581 |
comparison
equal
deleted
inserted
replaced
114:d4845549ed7c | 116:85d912e123af |
---|---|
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 (local-set-key (kbd "RET") | 30 (local-set-key (kbd "RET") |
31 'reindent-then-newline-and-indent))) | 31 'reindent-then-newline-and-indent) |
32 (local-set-key (kbd "C-M-f") | |
33 'textmate-find-in-project-type))) | |
32 | 34 |
33 (require 'django-html-mode) | 35 (require 'django-html-mode) |
34 ;; I think I probably just always want it in django mode for now | 36 ;; I think I probably just always want it in django mode for now |
35 (add-to-list 'auto-mode-alist '("\\.html$'" . django-html-mode)) | 37 (add-to-list 'auto-mode-alist '("\\.html$'" . django-html-mode)) |
38 (add-to-list 'auto-mode-alist '("\\.html.erb$'" . django-html-mode)) | |
39 (add-to-list 'auto-mode-alist '("\\.rhtml$'" . django-html-mode)) | |
36 (add-hook 'django-html-mode-hook '(lambda () | 40 (add-hook 'django-html-mode-hook '(lambda () |
37 (local-set-key (kbd "RET") | 41 (local-set-key (kbd "RET") |
38 'reindent-then-newline-and-indent))) | 42 'reindent-then-newline-and-indent))) |
39 | 43 |
40 (defun af-python-mode-hook () | 44 (defun af-python-mode-hook () |