From: Ryan Davis Date: 2006-08-16T02:29:41+09:00 Subject: Re: newb: setting up GNU Emacs for Ruby -- help On Aug 15, 2006, at 9:20 AM, John Gabriele wrote: > So, how do I get emacs to recognize Ruby? Am I supposed to copy one or > more of the misc/*.el files to my ~/.emacs.d directory? Yes, and you want to add ruby-mode.el to the autoload list: (autoload 'ruby-mode "ruby-mode" "Mode for editing ruby source files") (add-to-list 'auto-mode-alist '("\\.rb$" . ruby-mode)) (add-to-list 'interpreter-mode-alist '("ruby" . ruby-mode)) (autoload 'run-ruby "inf-ruby" "Run an inferior Ruby process") (autoload 'inf-ruby-keys "inf-ruby" "Set local key defs for inf-ruby in ruby-mode") Check out http://wiki.rubygarden.org/Ruby/page/show/ InstallingEmacsExtensions poke around in there... there is some good stuff. > Also, are we supposed to use *both* ruby-mode and ruby-electric, or > instead, just one or the other? Yes on ruby-mode, maybe on ruby-electric. Drives me bonkers but you might like it.