1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-18 03:46:03 +00:00
freebsd-ports/lang/ruby-mode.el/pkg-message
Volker Stolz d964159046 Fix recommendation for enabling ruby-mode
PR:		ports/94376
Submitted by:	Fazlul Shahriar
2006-04-09 14:40:32 +00:00

13 lines
546 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
(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)))
====