aboutsummaryrefslogtreecommitdiffstats
path: root/lang/ruby/pkg-message
blob: c59892a2e9805284ef57ab74f1c0b60d7d68c2a5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
====
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 that some stuff that comes with the standard Ruby distribution is
provided as separate ports:

    databases/ruby-gdbm:    GDBM module
    lang/irb:       Interactive Ruby
    japanese/rubytk or
    x11-toolkits/rubytk:    TclTkLib & Ruby/Tk modules

Please install them as occasion demands.
====