# Getting emacs-rails to autocomplete

**URL:** <https://www.ruby-forum.com/t/getting-emacs-rails-to-autocomplete/86164>\
**Category:** Rails\
**Created:** [February 20, 2007, 10:45am UTC](https://www.ruby-forum.com/t/getting-emacs-rails-to-autocomplete/86164 "2007-02-20T10:45:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![schmitr3](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ea666f/32.png) [@schmitr3](https://www.ruby-forum.com/u/schmitr3)\
**Post date:** [February 20, 2007, 10:45am UTC](https://www.ruby-forum.com/t/getting-emacs-rails-to-autocomplete/86164/1 "2007-02-20T10:45:03Z")

</div>

Hi

Using emacs-rails mode, tab should auto-complete snippets using the  
indent-or-complete function; for me it doesn’t.

doing M-x help b gives me:

indent-or-complete  
;; some more key bindings  
TAB ruby-indent-command

I presume the TAB binding is overriding the binding - any ideas  
on how I can change the order? If I do M-x indent-or-complete then the  
snippet expands as expected.

I’ve tried doing things such as forcing it in my .emacs file by doing  
local-set-key etc.

My emacs is Gnu 21.4.1

TIA,  
Roland

---

<div class="post-metadata">

**Author:** ![schmitr3](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ea666f/32.png) [@schmitr3](https://www.ruby-forum.com/u/schmitr3)\
**Post date:** [February 20, 2007, 11:20am UTC](https://www.ruby-forum.com/t/getting-emacs-rails-to-autocomplete/86164/2 "2007-02-20T11:20:08Z")

</div>

Try using Emacs 22.0.50.1, compiled from CVS. I’m using it as my dev  
environment (ruby or not) for years and works great.

According to  
[Peak Obsession](http://wiki.rubyonrails.com/rails/pages/HowToUseEmacsWithRails) you where  
not the first one to struggle with this problem.

Best,  
Zsombor

–  
Company - [http://primalgrasp.com](http://primalgrasp.com)  
Thoughts - [http://deezsombor.blogspot.com](http://deezsombor.blogspot.com)

---

<div class="post-metadata">

**Author:** ![schmitr3](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ea666f/32.png) [@schmitr3](https://www.ruby-forum.com/u/schmitr3)\
**Post date:** [February 20, 2007, 11:25am UTC](https://www.ruby-forum.com/t/getting-emacs-rails-to-autocomplete/86164/3 "2007-02-20T11:25:12Z")

</div>

Thanks, I might try that.

The only thing is - I have emacs 21 at home where tab complete works  
fine, and emacs 21 at work where it doesn’t. So it does work in 21,  
there must just be some configuration differences that I am unaware  
of.

Cheers,  
Roland
