Getting emacs-rails to autocomplete


#1

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


#2

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
http://wiki.rubyonrails.com/rails/pages/HowToUseEmacsWithRails you where
not the first one to struggle with this problem.

Best,
Zsombor


Company - http://primalgrasp.com
Thoughts - http://deezsombor.blogspot.com


#3

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