Created
December 17, 2011 18:24
-
-
Save tetsuok/1490957 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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