summaryrefslogtreecommitdiff
path: root/lang/ruby16/pkg-message
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2000-08-15 19:53:08 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2000-08-15 19:53:08 +0000
commit1a7fa933db5ace4b98b222d064642c0b3dafccec (patch)
treeeb25bc70a1db100bdb7fd5182834323551a66c7a /lang/ruby16/pkg-message
parentl0pht-watch is much more useful if you can see more than 20 characters (diff)
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.
Notes
Notes: svn path=/head/; revision=31672
Diffstat (limited to 'lang/ruby16/pkg-message')
-rw-r--r--lang/ruby16/pkg-message22
1 files changed, 22 insertions, 0 deletions
diff --git a/lang/ruby16/pkg-message b/lang/ruby16/pkg-message
index 564cf52f2485..743115d2f064 100644
--- a/lang/ruby16/pkg-message
+++ b/lang/ruby16/pkg-message
@@ -1,4 +1,26 @@
====
+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.