Mercurial > dotfiles
changeset 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 | 6ee60f93f4b7 |
children | 57cbf4b59097 |
files | .elisp/settings/40.modes.el |
diffstat | 1 files changed, 7 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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