Ruby Mode in Emacs

system

Emacs on OSX (Mac OS 10.3)

.emacs

add the following lines to your ~/.emacs file:

(autoload 'ruby-mode "ruby-mode" "Ruby editing mode." t)
(add-to-list 'auto-mode-alist '("\.rb$" . ruby-mode))
(add-to-list 'interpreter-mode-alist '("ruby" . ruby-mode))

ruby tarball

Rename the "misc" directory in the tarball to "/usr/local/lib/ruby/elisp". It should contain:

README inf-ruby.el ruby-mode.el rubydb2x.el rubydb3x.el

Create the following symbolic link:

/usr/share/emacs/site-lisp/ruby-mode.el@ -> /usr/local/lib/ruby/elisp/ruby-mode.el


Philip Wilk
Last modified: Wed Mar 31 17:57:29 PST 2004