# HG changeset patch # User Augie Fackler # Date 1245362875 18000 # Node ID 6a64e61359b76f4f23fea3bba84dec1511e07b7b # Parent 6ee60f93f4b7587a0fb6b06f85804a288e6881dd Unbreaks this file, but I am not sure if the django stuff is working properly. diff --git a/.elisp/settings/40.modes.el b/.elisp/settings/40.modes.el --- a/.elisp/settings/40.modes.el +++ b/.elisp/settings/40.modes.el @@ -25,14 +25,17 @@ point." (add-to-list 'auto-mode-alist '("\\.js$" . js2-mode)) (add-hook 'js2-mode-hook 'af-tab-fix) -(add-hook 'ruby-mode-hook (lambda () - (af-tab-fix)) -(define-key ruby-mode-map (kbd "RET") 'reindent-then-newline-and-indent) +(add-hook 'ruby-mode-hook '(lambda () + (af-tab-fix) + (local-set-key (kbd "RET") + 'reindent-then-newline-and-indent))) (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)) -(define-key django-html-mode-map (kbd "RET") 'reindent-then-newline-and-indent) +(add-hook 'django-html-mode-hook '(lambda () + (local-set-key (kbd "RET") + 'reindent-then-newline-and-indent))) (defun af-python-mode-hook () ; highlight tabs in Python