Here is a link to where I got my ruby-mode.el file.
It does not matter where you put the ruby-mode.el file, just put it somewhere pertinent. Many people recommend:
$HOME/.emacs.d/ruby-mode.el
Then add the following to your .emacs file:
(load "~/.emacs.d/ruby-mode")
Now, when you open a ruby file you need to tell emacs that it is a ruby file, so open the buffer and type:
Meta-x ruby-mode
And everything should work
This is also a good reference on loading an el file in emacs.
0 comments:
Post a Comment