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.
)
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.
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 forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.