Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[#12451] Optional disablement ruby-electric-mode <pezra>

  • Loading branch information...
commit 2603d0f79b8fd65f124e58106299adbf81a5dfcc 1 parent 70bc1d8
Tom ten Thij authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 rails.el
View
7 rails.el
@@ -145,6 +145,11 @@ Emacs w3m browser."
:group 'rails
:type 'string)
+(defcustom rails-enable-ruby-electric t
+ "Indicates whether ruby electric minor mode should be enabled by default for ruby files"
+ :group 'rails
+ :type 'boolean)
+
(defvar rails-version "0.5.99.6")
(defvar rails-templates-list '("html.erb" "erb" "js.rjs" "builder" "rhtml" "rxml" "rjs" "haml" "liquid" "mab"))
(defvar rails-use-another-define-key nil)
@@ -394,7 +399,7 @@ necessary."
(lambda()
(require 'rails-ruby)
(require 'ruby-electric)
- (ruby-electric-mode t)
+ (ruby-electric-mode (or rails-enable-ruby-electric -1))
(ruby-hs-minor-mode t)
(imenu-add-to-menubar "IMENU")
(modify-syntax-entry ?! "w" (syntax-table))
Please sign in to comment.
Something went wrong with that request. Please try again.