ruby-mode in Emacs 
Author Message
 ruby-mode in Emacs

This is probably pretty simplistic, but I have this in a file called
"add-ruby-mode.el". I have to say that I haven't used inf-ruby.  I
just run it straight on the command line.

(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")

; my-common-pkeys just does common keybindings across several
;  programming modes
;(add-hook 'ruby-mode-hook 'my-common-pkeys)

In my .emacs there's a line that says (load "~/bin/emacs/add-ruby-mode.el")
Make sure you change to location to wherever you put your add-ruby-mode file.


> Hello Everyone,
> Can someone please give me a brief run-down on howto install all of the
> emacs ruby friendly stuff... :) English resources for ruby are still so
> scarce :( I've got the following files: inf-ruby.el rubydb3x.el and
> ruby-mode.el from the ruby distribution (1.6.5) what the heck do I do
> with them, and how do I modify my ~/.emacs to use them....
> Any suggestion/help are MUCh appreciated... Thank You,
> Mike

> --
> /**********************************************************************\
> |      Mike Sowka                     o      _     _         _         |
> | An Aspiring Engi"Nerd"      _o     /\_   _ \\o  (_)\__/o  (_)        |
> |  Carleton University      _< \_   _>(_) (_)/<_    \_| \   _|/' \/    |

> \**********************************************************************/

Alan Chen
Digikata LLC


Wed, 21 Apr 2004 05:16:56 GMT  
 ruby-mode in Emacs
You should have a site-lisp directory. On my Debian system
it's /usr/share/emacs/site-lisp/.  I've placed all my ruby .el
files in a ruby directory under there. My emacs installation
normally includes sub-directories to the site-lisp directory
in a search of files to load. Yours may or may not.


> Thanx Alan,
> Just a question though... in your file you have a reference to
> ruby-mode... but where do I put the ruby-mode.el (or inf-ruby or
> rubydbg3x.el for that matter? ) file? And what do I do for emacs to
> recognize it?
> Thanx,
> Mike

Alan Chen
Digikata LLC

Wed, 21 Apr 2004 06:12:53 GMT  
 [ 2 post ] 

 Relevant Pages 

1. ruby-mode for Emacs crashing

2. Ruby mode for emacs

3. Ruby mode for Emacs...

4. Ruby Emacs-mode with Emacs 21.1.1

5. ruby-mode fix for Emacs 21?

6. ruby emacs mode question

7. error in Ruby emacs-mode

8. Here documents and emacs ruby mode

9. Emacs VHDL editing mode (vhdl-mode.el version 2.74)

10. Emacs VHDL editing mode (vhdl-mode.el version 2.71)

11. Emacs VHDL editing mode (vhdl-mode.el version

12. Emacs VHDL editing mode (vhdl-mode.el version


Powered by phpBB® Forum Software