From: Daniel Carrera Date: 2002-12-09T06:07:27+09:00 Subject: Re: Emacs Wooohoo!!!! YYYiiiipppeee!!! Yabadabadoo!! Thanks David, that worked. I didn't read inf-ruby.el because I didn't think it would have anything human-readable (I know so little Lisp that it might as well be Greek to me). Cheers, Daniel Carrera Graduate Teaching Assisant. Math Dept. University of Maryland. (301) 405-5137 On Mon, 9 Dec 2002 dblack@candle.superlink.net wrote: > Hi -- > > On Mon, 9 Dec 2002, Daniel Carrera wrote: > > > Sigh. I like Emacs, but I always struggle configuring it. > > > > Thanks for helping. I do appreciate it. Perhaps you can tell me what I'm > > doing wrong: > > > > I made ~/elisp and put ruby-mode.el in it (as well as the other *.el files > > from the Ruby distribution). > > > > I didn't have a ~/.xemacs/init.el file, so I created ~/.xemacs and > > ~/.xemacs/init.el and put what you wrote on it. It didn't work. > > > > I also added it to ~/.emacs (XEmacs seems to read configuration from > > there), but it didn't work either. > > > > By "it didn't work" I mean that when I open a '.rb' file I see no > > indication that the Ruby mode is loaded. For instance, I can't get it to > > do syntax highlighting. > > > > Can you think of anything else that I might be doing wrong? > > In your ~/.emacs you need to make the association between the .rb > extension and ruby-mode. Try putting this in your .emacs and then > start up a .rb file (this comes from some instructions in > inf-ruby.el): > > (autoload 'ruby-mode "ruby-mode" > "Mode for editing ruby source files" t) > (setq auto-mode-alist > (append '(("\\.rb$" . ruby-mode)) auto-mode-alist)) > (setq interpreter-mode-alist (append '(("ruby" . ruby-mode)) > interpreter-mode-alist)) > > > and that should hook into loading ruby-mode.el. > > > David > > -- > David Alan Black > home: dblack@candle.superlink.net > work: blackdav@shu.edu > Web: http://pirate.shu.edu/~blackdav > > >