diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | misc/ruby-mode.el | 4 |
2 files changed, 9 insertions, 1 deletions
@@ -1,3 +1,9 @@ +Wed Apr 7 23:33:55 2010 KOSAKI Motohiro <kosaki.motohiro@gmail.com> + + * misc/ruby-mode.el (ruby-mode-map): binded C-c C-c and C-c C-c C-u + to comment-region and uncomment-region. Thanks Michael Klishin! + [Feature #872] [ruby-core:20552] + Wed Apr 7 21:44:14 2010 Tanaka Akira <akr@fsij.org> * time.c (ASCTIME): unused macro removed. diff --git a/misc/ruby-mode.el b/misc/ruby-mode.el index cbf944c2ab..a72fabe0e6 100644 --- a/misc/ruby-mode.el +++ b/misc/ruby-mode.el @@ -172,7 +172,9 @@ (define-key ruby-mode-map "\t" 'ruby-indent-command) (define-key ruby-mode-map "\C-c\C-e" 'ruby-insert-end) (define-key ruby-mode-map "\C-j" 'ruby-reindent-then-newline-and-indent) - (define-key ruby-mode-map "\C-m" 'newline)) + (define-key ruby-mode-map "\C-m" 'newline) + (define-key ruby-mode-map "\C-c\C-c" 'comment-region) + (define-key ruby-mode-map "\C-c\C-u" 'uncomment-region)) (defvar ruby-mode-syntax-table nil "Syntax table in use in ruby-mode buffers.") |