From: rubikitch Date: 2006-02-05T09:47:20+09:00 Subject: Re: ruby-mode in emacs From: Human Dunnil 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/index.en.html -- rubikitch http://www.rubyist.net/~rubikitch/