Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Changing intendation ruby/emacs-mode?

Reply
Thread Tools

Changing intendation ruby/emacs-mode?

 
 
ssecorp
Guest
Posts: n/a
 
      08-31-2008
emacs indents 2 chars only by defualt in ruby-mode.

how can I change to 4?
 
Reply With Quote
 
 
 
 
fireinice@gmail.com
Guest
Posts: n/a
 
      09-01-2008
add line followed to the ruby-mode-hook:

as a sample:
(add-hook 'ruby-mode-hook
(lambda()
(set (make-local-variable 'tab-width) 4)))

 
Reply With Quote
 
 
 
 
Will Parsons
Guest
Posts: n/a
 
      09-01-2008
wrote:
> add line followed to the ruby-mode-hook:
>
> as a sample:
> (add-hook 'ruby-mode-hook
> (lambda()
> (set (make-local-variable 'tab-width) 4)))

^^^^^^^^^
I think you mean: ruby-indent-level

--
Will
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing style of the numbers in a CSS <ol> without changing the style of the <li> Aaron Beall HTML 2 09-14-2007 08:07 PM
<FAQENTRY>I'm changing my page but nothing is changing on the screen. Why?</FAQENTRY> VK Javascript 3 03-15-2007 04:59 PM
Guide: Changing your Power Supply fan RObErT_RaTh Reviews & How-To's 0 08-24-2005 04:05 PM
changing file extension without changing filename jamy Computer Support 4 03-04-2005 01:03 AM
Difficulty in changing the Connection Server control path changing ... Samridhi Kumar Shukla ASP .Net 1 11-30-2003 02:31 AM



Advertisments