Skip to content

Instantly share code, notes, and snippets.

@toshiharu
Created April 14, 2013 10:09
Show Gist options
  • Select an option

  • Save toshiharu/5382196 to your computer and use it in GitHub Desktop.

Select an option

Save toshiharu/5382196 to your computer and use it in GitHub Desktop.
ruby-mode で {} が打てない件。
--- ruby-mode.el.~1~ 2013-04-13 15:30:44.608612153 +0900
+++ ruby-mode.el 2013-04-14 19:07:54.417190578 +0900
@@ -874,7 +874,7 @@ Also ignores spaces after parenthesis wh
(defun ruby-electric-brace (arg)
(interactive "P")
- (insert-char last-command-char 1)
+ (insert-char last-command-event 1)
(ruby-indent-line t)
(delete-char -1)
(self-insert-command (prefix-numeric-value arg)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment