changeset 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 d4845549ed7c
children 67bfc48b2a61
files .elisp/settings/40.modes.el
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/.elisp/settings/40.modes.el
+++ b/.elisp/settings/40.modes.el
@@ -28,11 +28,15 @@ point."
 (add-hook 'ruby-mode-hook '(lambda ()
                             (af-tab-fix)
                             (local-set-key (kbd "RET")
-                                           'reindent-then-newline-and-indent)))
+                                           'reindent-then-newline-and-indent)
+                            (local-set-key (kbd "C-M-f")
+                                           'textmate-find-in-project-type)))
 
 (require 'django-html-mode)
 ;; I think I probably just always want it in django mode for now
 (add-to-list 'auto-mode-alist '("\\.html$'" . django-html-mode))
+(add-to-list 'auto-mode-alist '("\\.html.erb$'" . django-html-mode))
+(add-to-list 'auto-mode-alist '("\\.rhtml$'" . django-html-mode))
 (add-hook 'django-html-mode-hook '(lambda ()
                                     (local-set-key (kbd "RET")
                                                    'reindent-then-newline-and-indent)))