Rubymotion completion with Emacs

Rubymotion is a great alternative for iOS apps development using ruby without XCode.

It comes with a nifty rake task for generate tags, wich are very useful for code completion when we are using our favorite editors.

Unfortunately the output file is for VIM, but you’re lucky because the fix for getting it work with Emacs is quick and easy.

All you have to do is add the line ‘-e’ at the end of the file /Library/RubyMotion/data/bridgesupport-ctags.cfg

That file contains the options passed to ctags command, -e is for output in emacs format.

Here is the gist just for reference:

Try to execute

rake ctags

in your rubimotion project directory, and this time you should see a file named TAGS (in capital letters).

For completion in emacs just press M-.
The first time it should ask for TAGS file location.

Enjoy coding with ruby and may the church of Emacs bless you 😉