"Flex" <tie / acm.org> writes: > Just got Dave and Andy's book, want to try it out. I know I should use > mode_ruby.el file to set up ruby mode in xemacs, but don't know how. Anybody > can give me some help? Thanks a lot. Put the ruby-mode.el file in a directory that's searched by xemacs. I have a private directory ~/emacs, and add it to my path using (setq load-path (cons (expand-file-name "~/emacs/") load-path)) In your .emacs (or _emacs) add something like: (require 'ruby-mode) (setq auto-mode-alist (append '( ("\\.rb\\'" . ruby-mode) ... any other modes ... ) auto-mode-alist)) Note that I'm using require rather than autoload. That gets around a problem I was having with font-lock-mode under xemacs. Regards Dave