[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Changing intendation ruby/emacs-mode?

ssecorp

8/31/2008 10:47:00 PM

emacs indents 2 chars only by defualt in ruby-mode.

how can I change to 4?
2 Answers

fireinice

9/1/2008 7:16:00 AM

0

add line followed to the ruby-mode-hook:

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

Will Parsons

9/1/2008 11:27:00 PM

0

fireinice@gmail.com 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