Changing intendation ruby/emacs-mode?

Discussion in 'Ruby' started by ssecorp, Aug 31, 2008.

  1. ssecorp

    ssecorp Guest

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

    how can I change to 4?
     
    ssecorp, Aug 31, 2008
    #1
    1. Advertising

  2. ssecorp

    Guest

    add line followed to the ruby-mode-hook:

    as a sample:
    (add-hook 'ruby-mode-hook
    (lambda()
    (set (make-local-variable 'tab-width) 4)))
     
    , Sep 1, 2008
    #2
    1. Advertising

  3. ssecorp

    Will Parsons Guest

    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
     
    Will Parsons, Sep 2, 2008
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. John J Lee
    Replies:
    3
    Views:
    524
    bruno at modulix
    Dec 1, 2005
  2. Jeffrey Moss

    eruby mode emacs with mmm-mode

    Jeffrey Moss, Jul 6, 2005, in forum: Ruby
    Replies:
    1
    Views:
    176
    Alan Chen
    Jul 6, 2005
  3. PerlFAQ Server
    Replies:
    1
    Views:
    214
    Marc Girod
    Jan 8, 2011
  4. PerlFAQ Server
    Replies:
    0
    Views:
    172
    PerlFAQ Server
    Apr 12, 2011
  5. Replies:
    1
    Views:
    477
    Marc Girod
    Feb 3, 2012
Loading...

Share This Page