Changing intendation ruby/emacs-mode?

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

how can I change to 4?

On Mon Sep 1 07:44:50 2008, ssecorp wrote:

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

how can I change to 4?

Put this in your .emacs:

(setq-default tab-width 4)

Hi,

In message “Re: Changing intendation ruby/emacs-mode?”
on Mon, 1 Sep 2008 07:44:50 +0900, ssecorp [email protected]
writes:

|emacs indents 2 chars only by defualt in ruby-mode.
|
|how can I change to 4?

Put this in your .emacs:

(setq-default ruby-indent-level 4)

          matz.

add line followed to the ruby-mode-hook:

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

[email protected] 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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs