# HG changeset patch # User Augie Fackler # Date 1239672806 18000 # Node ID 89f6d05cd7d5e137803eb97ea65dfb878488c0b8 # Parent 5b1c3bfcf4b8d50c1711e1537e0ecd4bc336b5bf Fix some ruby mode keybindings. 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 @@ -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)