summaryrefslogtreecommitdiff
path: root/misc/ruby-electric.el
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-18 17:38:08 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-18 17:38:08 +0000
commit041224017c5a865ad0ea0d360bce1709b39d2255 (patch)
tree09de0c963589c30002531982e070d37a9ee5bd49 /misc/ruby-electric.el
parent616084fd976a4e083722e32818f95c304903534f (diff)
* misc/ruby-electric.el (ruby-electric-setup-keymap): Make
backquotes electric as well. It was listed in ruby-electric-expand-delimiters-list but not activated. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'misc/ruby-electric.el')
-rw-r--r--misc/ruby-electric.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/misc/ruby-electric.el b/misc/ruby-electric.el
index 2972651..078d12b 100644
--- a/misc/ruby-electric.el
+++ b/misc/ruby-electric.el
@@ -120,6 +120,7 @@ strings. Note that you must have Font Lock enabled."
(define-key ruby-mode-map "[" 'ruby-electric-matching-char)
(define-key ruby-mode-map "\"" 'ruby-electric-matching-char)
(define-key ruby-mode-map "\'" 'ruby-electric-matching-char)
+ (define-key ruby-mode-map "`" 'ruby-electric-matching-char)
(define-key ruby-mode-map "}" 'ruby-electric-closing-char)
(define-key ruby-mode-map ")" 'ruby-electric-closing-char)
(define-key ruby-mode-map "]" 'ruby-electric-closing-char)
@@ -279,7 +280,7 @@ strings. Note that you must have Font Lock enabled."
(ruby-electric-string-at-point-p)))
(save-excursion (insert closing))
(and (eq last-command 'ruby-electric-matching-char)
- (char-equal (following-char) closing) ;; repeated ' or "
+ (char-equal (following-char) closing) ;; repeated quotes
(delete-forward-char 1))
(setq this-command 'self-insert-command)))
((ruby-electric-code-at-point-p)