I suggest using quickrun.el , which is supported by me.
quickrun.el is an extension for performing buffer editing. quickrun.el supports many programming languages and markup languages, of course it supports Ruby.
You download quickrun.el at the following URL.
https://raw.github.com/syohex/emacs-quickrun/master/quickrun.el
And you add quickrun.el, following the setup in your configuration file and evaluating it (or reloading Emacs).
(add-to-list 'load-path "~/.emacs.d/elisp") ;; If you install quickrun.el to ~/.emacs.d/elisp (require 'quickrun)
Now you can use the following command to execute the current buffer.
Mx quickrun
You can use the current current compilation buffer (do not execute).
Mx quickrun-compile-only
If you often use the quickrun command, you should assign key bindings, such as the following.
(global-set-key (kbd "<f7>") 'quickrun) (global-set-key (kbd "<f8>") 'quickrun-compile-only)
Please see the github page if you know more information about quickrun.el.
thanks
source share