Skip to content

Instantly share code, notes, and snippets.

@tetsuok
Created December 17, 2011 18:24
Show Gist options
  • Save tetsuok/1490957 to your computer and use it in GitHub Desktop.
Save tetsuok/1490957 to your computer and use it in GitHub Desktop.
(if (>= emacs-major-version 24)
(electric-pair-mode t)
;; Setup the alternative manually.
(progn
;; ...
))
(require 'ruby-electric)
(add-hook 'ruby-mode-hook
'(lambda ()
(ruby-electric-mode t)
;; Want to avoid some weird completions arising from
;; the use of ruby-electric.el and electric-pair-mode.
(when (>= emacs-major-version 24)
(set (make-local-variable 'electric-pair-mode) nil))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment