~:: kalyan ::~

August 10, 2006

emacs-ruby mode

Filed under: General — skalyanasundaram @ 4:20 pm
oh! after a long time i am back again. Nothing specific .
Just too lazy to write.
I have got a el file for ruby-mode for emacs.
Rubypanther (really dont know his original name) gave me this el file which works very fine with emacs
if you need get that here

and add the following lines in your .emacs file

  (autoload 'ruby-mode "ruby-mode"
"Mode for editing ruby source files" t)
(setq auto-mode-alist
    (append '(("\\.rb$" . ruby-mode)) auto-mode-alist))
(setq interpreter-mode-alist (append '(("ruby" . ruby-mode))
       interpreter-mode-alist))

syntax high lighting and others like automatic indentation looks fine

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: