Created — forked from stuartsierra/gist:1212314

Embed URL


SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Enable Electric Ruby Mode in Emacs

View gist:1213051
1 2 3 4 5 6 7 8 9 10 11 12 13 14
;; Add this to ~/.emacs
;; Missing from ruby-mode.el, see
(defun ruby-insert-end ()
"Insert \"end\" at point and reindent current line."
(insert "end")
(ruby-indent-line t)
(add-hook 'ruby-mode-hook
(lambda ()
(require 'ruby-electric)
(ruby-electric-mode t)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.