Forum: Ruby on Rails Getting emacs-rails to autocomplete

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Roland S. (Guest)
on 2007-02-20 11:45
(Received via mailing list)
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:

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

I presume the TAB binding is overriding the <tab> 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
Dee Z. (Guest)
on 2007-02-20 12:20
(Received via mailing list)
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/HowToUseEm... you where
not the first one to struggle with this problem.

Best,
Zsombor

--
Company  - http://primalgrasp.com
Thoughts - http://deezsombor.blogspot.com
Roland S. (Guest)
on 2007-02-20 12:25
(Received via mailing list)
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
This topic is locked and can not be replied to.