Mercurial > dotfiles
changeset 82:89f6d05cd7d5
Fix some ruby mode keybindings.
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Mon, 13 Apr 2009 20:33:26 -0500 |
parents | 5b1c3bfcf4b8 |
children | 568f9f350844 |
files | .elisp/settings/40.modes.el |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/.elisp/settings/40.modes.el +++ b/.elisp/settings/40.modes.el @@ -26,6 +26,11 @@ 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) + (local-set-key "\C-m" 'newline-and-indent))) + + (defun af-python-mode-hook () ; highlight tabs in Python (make-variable-buffer-local 'font-lock-mode-hook)