Commit 2286174e authored by Chong Yidong's avatar Chong Yidong

* progmodes/ruby-mode.el (ruby-mode-map): Don't bind TAB.

(ruby-mode): Bind indent-line-function (Bug#5119).
parent 3468f435
2010-01-16 Lennart Borgman <lennart.borgman@gmail.com>
* progmodes/ruby-mode.el (ruby-mode-map): Don't bind TAB.
(ruby-mode): Bind indent-line-function (Bug#5119).
2010-06-27 Chong Yidong <cyd@stupidchicken.com> 2010-06-27 Chong Yidong <cyd@stupidchicken.com>
* startup.el (command-line): Recognize "0" X resource value. * startup.el (command-line): Recognize "0" X resource value.
......
...@@ -166,7 +166,6 @@ This should only be called after matching against `ruby-here-doc-end-re'." ...@@ -166,7 +166,6 @@ This should only be called after matching against `ruby-here-doc-end-re'."
(define-key map (kbd "M-C-n") 'ruby-end-of-block) (define-key map (kbd "M-C-n") 'ruby-end-of-block)
(define-key map (kbd "M-C-h") 'ruby-mark-defun) (define-key map (kbd "M-C-h") 'ruby-mark-defun)
(define-key map (kbd "M-C-q") 'ruby-indent-exp) (define-key map (kbd "M-C-q") 'ruby-indent-exp)
(define-key map (kbd "TAB") 'ruby-indent-line)
(define-key map (kbd "C-M-h") 'backward-kill-word) (define-key map (kbd "C-M-h") 'backward-kill-word)
(define-key map (kbd "C-j") 'reindent-then-newline-and-indent) (define-key map (kbd "C-j") 'reindent-then-newline-and-indent)
(define-key map (kbd "C-m") 'newline) (define-key map (kbd "C-m") 'newline)
...@@ -1390,6 +1389,8 @@ The variable `ruby-indent-level' controls the amount of indentation. ...@@ -1390,6 +1389,8 @@ The variable `ruby-indent-level' controls the amount of indentation.
(setq major-mode 'ruby-mode) (setq major-mode 'ruby-mode)
(ruby-mode-variables) (ruby-mode-variables)
(set (make-local-variable 'indent-line-function)
'ruby-indent-line)
(set (make-local-variable 'imenu-create-index-function) (set (make-local-variable 'imenu-create-index-function)
'ruby-imenu-create-index) 'ruby-imenu-create-index)
(set (make-local-variable 'add-log-current-defun-function) (set (make-local-variable 'add-log-current-defun-function)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment