Mercurial > dotfiles
diff .elisp/settings/40.modes.el @ 109:8e04d9d41a55
reindent-then-newline-and-indent is the best discovery of the week.
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Wed, 17 Jun 2009 15:47:51 -0500 |
parents | 16b57e1fc23d |
children | 6a64e61359b7 |
line wrap: on
line diff
--- a/.elisp/settings/40.modes.el +++ b/.elisp/settings/40.modes.el @@ -26,12 +26,13 @@ point." (add-hook 'js2-mode-hook 'af-tab-fix) (add-hook 'ruby-mode-hook (lambda () - (af-tab-fix) - (local-set-key "\C-m" 'newline-and-indent))) + (af-tab-fix)) +(define-key ruby-mode-map (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) (defun af-python-mode-hook () ; highlight tabs in Python