Forum: Ruby ruby-mode in emacs

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Human D. (Guest)
on 2006-02-05 03:15
(Received via mailing list)
Hi,
I'm new to emacs, just bought a book and started my way into it.
How could I enable ruby-mode in emacs?
I copied all 4 *.el files to C:\emacs-21.3\lisp\progmodes, and enabled
_global font lock_ (through the menu)
I have the syntax coloring but not auto-complete or anything else.
How do I enable auto-complete? and is there another features in these
modes?

Thanks,
- H

Here is my .emacs file:
(autoload 'ruby-mode "ruby-mode" "Ruby editing mode." t)
(setq auto-mode-alist (cons '("\\.rb$" . ruby-mode) auto-mode-alist))

(custom-set-variables
  ;; custom-set-variables was added by Custom -- don't edit or cut/paste
it!
  ;; Your init file should contain only one such instance.
 '(case-fold-search t)
 '(current-language-environment "Latin-1")
 '(default-input-method "latin-1-prefix")
 '(global-font-lock-mode t nil (font-lock)))
(custom-set-faces
  ;; custom-set-faces was added by Custom -- don't edit or cut/paste it!
  ;; Your init file should contain only one such instance.
 )
rubikitch (Guest)
on 2006-02-05 03:15
(Received via mailing list)
From: Human D. <removed_email_address@domain.invalid>
Subject: ruby-mode in emacs
Date: Sun, 5 Feb 2006 09:00:09 +0900

> I have the syntax coloring but not auto-complete or anything else.
> How do I enable auto-complete? and is there another features in these modes?

Do you complete Ruby tokens like emacs-lisp?

If you want to complete Ruby tokens, use exuberant ctags.

First make `TAGS', the tag file.
$ ctags -e *.rb

Then enable the tag file.
M-x visit-tags-table

(defun ruby-mode-hook0 ()
  (define-key ruby-mode-map "\M-\C-i" 'complete-tag)
)

(add-hook 'inferior-ruby-mode-hook 'inferior-ruby-mode-hook0)


And if you want to complete in inferior-ruby-mode, you can use irbsh.
Irbsh extends inferior-ruby-mode to enable you to complete Ruby tokens,
and to execute shell commands.

http://www.rubyist.net/~rubikitch/computer/irbsh/i...
unknown (Guest)
on 2006-02-15 07:36
(Received via mailing list)
> If you want to complete Ruby tokens, use exuberant ctags.

FWIW the Zeus for Windows IDE provides seamless integration
with the Exuberant Ctags utility:

   http://www.zeusedit.com/ruby.html

Basically you create a project/workspace, add the source
files to the project and Zeus will automatically manage
the updating of the ctags information.

Jussi Jumppanen
Author: Zeus for Windows IDE
Note: Zeus is shareware (45 day trial).
This topic is locked and can not be replied to.