# Emacs / rcodetools

**URL:** <https://www.ruby-forum.com/t/emacs-rcodetools/151292>\
**Category:** Ruby\
**Created:** [October 19, 2008, 11:13pm UTC](https://www.ruby-forum.com/t/emacs-rcodetools/151292 "2008-10-19T23:13:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![leonb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/22d042/32.png) [@leonb](https://www.ruby-forum.com/u/leonb)\
**Post date:** [October 19, 2008, 11:13pm UTC](https://www.ruby-forum.com/t/emacs-rcodetools/151292/1 "2008-10-19T23:13:49Z")

</div>

Hi all,

I’m trying to get emacs running nicely all weekend. But I can’t get  
certain things to work.

I’ve installed rcodetools and tried to use it for tab-completion.  
Using m-X rct-complete-symbol works just fine. But it doesn’t work when  
I try the tab-key or m-/

Does anyone have a working setup like this?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![leonb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/22d042/32.png) [@leonb](https://www.ruby-forum.com/u/leonb)\
**Post date:** [October 20, 2008, 12:43am UTC](https://www.ruby-forum.com/t/emacs-rcodetools/151292/2 "2008-10-20T00:43:30Z")

</div>

> I’ve installed rcodetools and tried to use it for tab-completion.  
> Using m-X rct-complete-symbol works just fine. But it doesn’t work when  
> I try the tab-key or m-/
> 
> Does anyone have a working setup like this?

I have this following :  
(define-key ruby-mode-map (kbd “C-/”) 'rct-complete-symbol)

I use M-/ for hippie expand. I use C-/ combined with anything-rcodetools  
to pop up a completion buffer in ruby mode.

Hope this helps,

Chris

---

<div class="post-metadata">

**Author:** ![leonb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/22d042/32.png) [@leonb](https://www.ruby-forum.com/u/leonb)\
**Post date:** [October 20, 2008, 2:48pm UTC](https://www.ruby-forum.com/t/emacs-rcodetools/151292/3 "2008-10-20T14:48:38Z")

</div>

Chris L. wrote:

> > I’ve installed rcodetools and tried to use it for tab-completion.  
> > Using m-X rct-complete-symbol works just fine. But it doesn’t work when  
> > I try the tab-key or m-/
> > 
> > Does anyone have a working setup like this?
> 
> I have this following :  
> (define-key ruby-mode-map (kbd “C-/”) 'rct-complete-symbol)
> 
> I use M-/ for hippie expand. I use C-/ combined with anything-rcodetools  
> to pop up a completion buffer in ruby mode.
> 
> Hope this helps,
> 
> Chris

Thanks this works! Do you know if it’s also possible to use this outside  
the mini buffer? So it acts more like the usual tab completion?

This emacs stuff is hard to set up!

---

<div class="post-metadata">

**Author:** ![leonb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/22d042/32.png) [@leonb](https://www.ruby-forum.com/u/leonb)\
**Post date:** [October 20, 2008, 2:49pm UTC](https://www.ruby-forum.com/t/emacs-rcodetools/151292/4 "2008-10-20T14:49:48Z")

</div>

> Thanks this works! Do you know if it’s also possible to use this outside  
> the mini buffer? So it acts more like the usual tab completion?
> 
> This emacs stuff is hard to set up!

OW wait, anything-rcodetools is what I want? I’ll try to set that up.
