branch: elpa/inf-ruby
commit 00237986d8259f459a0ce747d76516451096e969
Author: Vasilij Schneidermann <[email protected]>
Commit: Vasilij Schneidermann <[email protected]>
Turn `inf-ruby-implementations` into custom form
---
inf-ruby.el | 21 +++++++++++----------
1 file changed, 11 insertions(+), 10 deletions(-)
diff --git a/inf-ruby.el b/inf-ruby.el
index 5a5fe36539..9f7cc531cb 100755
--- a/inf-ruby.el
+++ b/inf-ruby.el
@@ -70,6 +70,17 @@ Also see the description of `ielm-prompt-read-only'."
:type 'boolean
:group 'inf-ruby)
+(defcustom inf-ruby-implementations
+ '(("ruby" . "irb --prompt default --noreadline -r irb/completion")
+ ("jruby" . "jruby -S irb --prompt default --noreadline -r
irb/completion")
+ ("rubinius" . "rbx -r irb/completion")
+ ("yarv" . "irb1.9 -r irb/completion")
+ ("macruby" . "macirb -r irb/completion")
+ ("pry" . "pry"))
+ "An alist of ruby implementations to irb executable names."
+ :type '(repeat (cons string string))
+ :group 'inf-ruby)
+
(defcustom inf-ruby-default-implementation "ruby"
"Which Ruby implementation to use if none is specified."
:type `(choice ,@(mapcar (lambda (item) (list 'const (car item)))
@@ -113,16 +124,6 @@ graphical char in all other prompts.")
map)
"Mode map for `inf-ruby-mode'.")
-;;;###autoload
-(defvar inf-ruby-implementations
- '(("ruby" . "irb --prompt default --noreadline -r irb/completion")
- ("jruby" . "jruby -S irb --prompt default --noreadline -r
irb/completion")
- ("rubinius" . "rbx -r irb/completion")
- ("yarv" . "irb1.9 -r irb/completion")
- ("macruby" . "macirb -r irb/completion")
- ("pry" . "pry"))
- "An alist of ruby implementations to irb executable names.")
-
;;;###autoload
(defvar ruby-source-modes '(ruby-mode enh-ruby-mode)
"Used to determine if a buffer contains Ruby source code.