Changing intendation ruby/emacs-mode?

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)

···

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?

--
Fred O. Phillips

BBC7 7572 755F 83E0 3209 504A E4F7 874F 1545 9D41

Hi,

···

In message "Re: Changing intendation ruby/emacs-mode?" on Mon, 1 Sep 2008 07:44:50 +0900, ssecorp <circularfunc@gmail.com> 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)))

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