From: Mike Sowka Date: 2001-11-03T06:23:46+09:00 Subject: [ruby-talk:24206] Re: ruby-mode in Emacs Alan Chen wrote: >This is probably pretty simplistic, but I have this in a file called >"add-ruby-mode.el". I have to say that I haven't used inf-ruby. I >just run it straight on the command line. > >(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") > >; my-common-pkeys just does common keybindings across several >; programming modes >;(add-hook 'ruby-mode-hook 'my-common-pkeys) > > >In my .emacs there's a line that says (load "~/bin/emacs/add-ruby-mode.el") >Make sure you change to location to wherever you put your add-ruby-mode file. > Thanx Alan, Just a question though... in your file you have a reference to ruby-mode... but where do I put the ruby-mode.el (or inf-ruby or rubydbg3x.el for that matter? ) file? And what do I do for emacs to recognize it? Thanx, Mike -- /**********************************************************************\ | Mike Sowka o _ _ _ | | An Aspiring Engi"Nerd" _o /\_ _ \\o (_)\__/o (_) | | Carleton University _< \_ _>(_) (_)/<_ \_| \ _|/' \/ | | msowka@doe.carleton.ca (_)>(_) (_) (_) (_) (_)' _\o_ | | (home msowka@home.com) | \**********************************************************************/