On 8/15/06, Julian I. Kamil <julian.kamil / gmail.com> wrote:
> Here is what I have in my .emacs:
>
> =====
> (setq load-path (append load-path '("/path/to/ruby.el")))
>
> (cond (window-system
>     (require 'font-lock)
>     (setq font-lock-support-mode 'lazy-lock-mode)
>     (setq font-lock-maximum-decoration t)
>     (global-font-lock-mode t)
>     ))
>
> (autoload    'ruby-mode "ruby-mode" "Load ruby-mode")
> (add-to-list 'auto-mode-alist '("\\.rb\\'" . ruby-mode))
>
> (add-hook 'ruby-mode-hook
>     (function
>         (lambda ()
>             (font-lock-mode 1)
>         )
>     )
> )
>
> (set-variable 'ruby-indent-level 4)
> =====
>
> I hope that helps...

Thanks Julian.

A major key seems to be adding to the load-path. I've added a bit on
that to http://wiki.rubygarden.org/Ruby/page/show/InstallingEmacsExtensions
, but have seen a couple different ways to do it besides yours, and so
have put all three up there.

Hm. I see that you set ruby-indent-level right there in your .emacs
file rather than modifying the ruby-mode.el file.

---John