git clone 'git://github.com/purcell/ac-inf-ruby.git'
This plugin provides an auto-complete completion source for use in inf-ruby buffers.
Latest stable version: see the latest numbered tag, which will also be the latest version available via Marmalade.
inf-ruby are installed: I recommend
using packages from Marmalade or Melpa.
You'll need both
inf-ruby to be enabled and
working, so please consult the corresponding documentation is you have
any trouble with this.
ac-inf-rub. If you choose not to use the convenient
package in Melpa and Marmalade, you'll need to
add the directory containing
ac-inf-ruby.el to your
ac-inf-ruby provides an
inf-ruby-specific completion source,
auto-complete needs to be told to use them when
active. To do this, put the following code in your emacs init file to
(eval-after-load 'auto-complete '(add-to-list 'ac-modes 'inf-ruby-mode)) (add-hook 'inf-ruby-mode-hook 'ac-inf-ruby-enable)
If you want to trigger
auto-complete using TAB in
inf-ruby buffers, you
should bind it directly:
(eval-after-load 'inf-ruby ' '(define-key inf-ruby-mode-map (kbd "TAB") 'auto-complete))
ac-inf-ruby should now automatically be enabled in new
Simply trigger auto-completion, and completion candidates supplied by
inf-ruby should be displayed, with the “r” symbol on the right hand side of the
ac-inf-ruby was written by Steve Purcell.
Steve Purcell's blog // @sanityinc on Twitter