1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-04 22:33:27 +00:00
freebsd-ports/lang/ruby/pkg-message
Akinori MUSHA 1a7fa933db Install Emacs Lisp files (*.el) to share/emacs/site-lisp/ and
lib/xemacs/site-lisp so Emacs/XEmacs can easily find them to load.

Instruct users how to use them.
2000-08-15 19:53:08 +00:00

28 lines
812 B
Plaintext

====
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")
(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")
(add-hook 'ruby-mode-hook
'(lambda ()
(inf-ruby-keys)
))
====
NOTE: This package does NOT contain irb (the interactive Ruby)
and Ruby/Tk (an interface to Tk GUI toolkits); You need to
install separate packages to use them.
====