comparison .elisp/settings/40.modes.el @ 82:89f6d05cd7d5

Fix some ruby mode keybindings.
author Augie Fackler <durin42@gmail.com>
date Mon, 13 Apr 2009 20:33:26 -0500
parents 26f1ccac509c
children 68f53fa09e99
comparison
equal deleted inserted replaced
81:5b1c3bfcf4b8 82:89f6d05cd7d5
24 24
25 (autoload 'js2-mode "js2" nil t) 25 (autoload 'js2-mode "js2" nil t)
26 (add-to-list 'auto-mode-alist '("\\.js$" . js2-mode)) 26 (add-to-list 'auto-mode-alist '("\\.js$" . js2-mode))
27 (add-hook 'js2-mode-hook 'af-tab-fix) 27 (add-hook 'js2-mode-hook 'af-tab-fix)
28 28
29 (add-hook 'ruby-mode-hook (lambda ()
30 (af-tab-fix)
31 (local-set-key "\C-m" 'newline-and-indent)))
32
33
29 (defun af-python-mode-hook () 34 (defun af-python-mode-hook ()
30 ; highlight tabs in Python 35 ; highlight tabs in Python
31 (make-variable-buffer-local 'font-lock-mode-hook) 36 (make-variable-buffer-local 'font-lock-mode-hook)
32 (add-hook 'font-lock-mode-hook 'show-ws-highlight-tabs) 37 (add-hook 'font-lock-mode-hook 'show-ws-highlight-tabs)
33 (make-variable-buffer-local 'python-indent) 38 (make-variable-buffer-local 'python-indent)