2000-08-15 19:53:08 +00:00
|
|
|
====
|
|
|
|
To use ruby-mode, inf-ruby and rubydb in Emacs/XEmacs, add the
|
|
|
|
following lines to your ~/.emacs:
|
|
|
|
|
|
|
|
;; Taken from the comment section in inf-ruby.el
|
|
|
|
(setq ruby-program-name "/usr/local/bin/ruby")
|
2000-09-07 15:00:29 +00:00
|
|
|
(autoload 'ruby-mode "ruby-mode" "Mode for editing ruby source files")
|
2000-08-15 19:53:08 +00:00
|
|
|
(add-to-list 'auto-mode-alist '("\\.rb$" . ruby-mode))
|
|
|
|
(add-to-list 'interpreter-mode-alist '("ruby" . ruby-mode))
|
2000-09-07 15:00:29 +00:00
|
|
|
(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)))
|
1999-11-14 01:37:22 +00:00
|
|
|
====
|
2000-09-07 15:00:29 +00:00
|
|
|
Note that some stuff that comes with the standard Ruby 1.4
|
|
|
|
distribution is provided as separate ports:
|
2000-08-30 13:45:59 +00:00
|
|
|
|
2000-09-07 15:00:29 +00:00
|
|
|
databases/ruby14-gdbm: GDBM module
|
|
|
|
lang/ruby14-irb: Interactive Ruby
|
|
|
|
lang/ruby14-tcltklib or japanese/ruby14-tcltklib:
|
|
|
|
Tcl/Tk libraries
|
|
|
|
x11-toolkits/ruby14-tk or japanese/ruby14-tk:
|
|
|
|
Tk modules
|
2000-08-30 13:45:59 +00:00
|
|
|
|
|
|
|
Please install them as occasion demands.
|
2000-09-07 15:00:29 +00:00
|
|
|
===
|
|
|
|
To use other ruby-* ports with Ruby 1.4, build and install them with
|
|
|
|
"RUBY_VER=1.4" defined. (i.e. make RUBY_VER=1.4 install)
|
1999-11-14 01:37:22 +00:00
|
|
|
====
|