aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/ruby-mode.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/progmodes/ruby-mode.el')
-rw-r--r--lisp/progmodes/ruby-mode.el8
1 files changed, 7 insertions, 1 deletions
diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el
index 59d85e60eef..0b92234bf1c 100644
--- a/lisp/progmodes/ruby-mode.el
+++ b/lisp/progmodes/ruby-mode.el
@@ -43,6 +43,11 @@
43 43
44(eval-when-compile (require 'cl)) 44(eval-when-compile (require 'cl))
45 45
46(defgroup ruby nil
47 "Major mode for editing Ruby code."
48 :prefix "ruby-"
49 :group 'languages)
50
46(defconst ruby-keyword-end-re 51(defconst ruby-keyword-end-re
47 (if (string-match "\\_>" "ruby") 52 (if (string-match "\\_>" "ruby")
48 "\\_>" 53 "\\_>"
@@ -166,7 +171,6 @@ This should only be called after matching against `ruby-here-doc-end-re'."
166 (define-key map (kbd "M-C-n") 'ruby-end-of-block) 171 (define-key map (kbd "M-C-n") 'ruby-end-of-block)
167 (define-key map (kbd "M-C-h") 'ruby-mark-defun) 172 (define-key map (kbd "M-C-h") 'ruby-mark-defun)
168 (define-key map (kbd "M-C-q") 'ruby-indent-exp) 173 (define-key map (kbd "M-C-q") 'ruby-indent-exp)
169 (define-key map (kbd "TAB") 'ruby-indent-line)
170 (define-key map (kbd "C-M-h") 'backward-kill-word) 174 (define-key map (kbd "C-M-h") 'backward-kill-word)
171 (define-key map (kbd "C-j") 'reindent-then-newline-and-indent) 175 (define-key map (kbd "C-j") 'reindent-then-newline-and-indent)
172 (define-key map (kbd "C-m") 'newline) 176 (define-key map (kbd "C-m") 'newline)
@@ -1390,6 +1394,8 @@ The variable `ruby-indent-level' controls the amount of indentation.
1390 (setq major-mode 'ruby-mode) 1394 (setq major-mode 'ruby-mode)
1391 (ruby-mode-variables) 1395 (ruby-mode-variables)
1392 1396
1397 (set (make-local-variable 'indent-line-function)
1398 'ruby-indent-line)
1393 (set (make-local-variable 'imenu-create-index-function) 1399 (set (make-local-variable 'imenu-create-index-function)
1394 'ruby-imenu-create-index) 1400 'ruby-imenu-create-index)
1395 (set (make-local-variable 'add-log-current-defun-function) 1401 (set (make-local-variable 'add-log-current-defun-function)