Mercurial > dotfiles
changeset 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 | 0d410d93d754 |
children | 6ee60f93f4b7 |
files | .elisp/settings/40.modes.el |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
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