"R. Mark Volkmann" <volkmann2 / home.com> writes: > ----- Original Message ----- > From: "Nathaniel Talbott" <ntalbott / rolemodelsoft.com> > To: "ruby-talk ML" <ruby-talk / netlab.co.jp> > Sent: Saturday, January 20, 2001 7:28 PM > Subject: [ruby-talk:9620] RE: Ruby mode for emacs > > > > R. Mark Volkmann asked: > > > > > Is anyone successfully using Ruby mode for emacs under Windows 2000? > > > I've tried version 20.4 and 20.7 of emacs. Both crash when > > > I'm editing a > > > Ruby file and hit the tab key. > > > > I'm using XEmacs version 21.1 here, and it works fine. > > Thanks! I downloaded that and the tab key in Ruby mode is working fine! > > Now however, I've lost the syntax color-coding. > If anyone knows what I need to add to my .emacs file to get that working I'd > appreciate a pointer. > Perhap you could just email me your .emacs file. > Here are the relevant bits from mine. The indentation was ruined when I cut-and-pasted this code. BTW, I'm using Emacs v 20.7. (setq load-path (cons "~/ruby/doc/ruby/ruby-1.6.2/misc" load-path)) (if window-system (progn (global-font-lock-mode t) ; ... ) ) ;; ;; Ruby-mode ;; ; (1) modify .emacs to use ruby-mode (autoload 'ruby-mode "ruby-mode" "Ruby mode" t nil) (setq auto-mode-alist (append '(("\\.rbw?$" . ruby-mode)) auto-mode-alist)) (setq interpreter-mode-alist (append '(("ruby" . ruby-mode)) interpreter-mode-alist)) ; (2) set to road inf-ruby and set inf-ruby key definition in 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") (add-hook 'ruby-mode-hook '(lambda () (inf-ruby-keys) (setq ruby-indent-level 4) )) Jim -- Jim Menard, jimm / io.com, http://www.io.com/~jimm/ ---- BEGIN META GEEK CODE ---- gc ---- END META GEEK CODE ----