[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: indentation (Indent More)
From: |
Russ P. |
Subject: |
Re: indentation (Indent More) |
Date: |
Wed, 15 Jul 2015 14:41:14 -0700 (PDT) |
User-agent: |
G2/1.0 |
On Wednesday, July 15, 2015 at 1:34:38 PM UTC-7, Bobby Casey wrote:
> On Sun, Jul 12, 2015 at 2:03 AM, Russ P. <russ.p@gmail.com> wrote:
> > I recently decided to decrease my indentation from 4 spaces to 2 spaces (as
> > recommended for Scala). I have the following in my .emacs file:
> >
> > (global-set-key "\t" 'tab-to-tab-stop) ; "normal" tab key
> > (setq tab-stop-list '(2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36))
> > (setq-default indent-tabs-mode nil)
> > (setq-default tab-width 2)
> >
> > It works fine, but when I try to use
> >
> > Edit/Text Properties/Indentation/Indent More
> >
> > it still adds 4 spaces. How can I change that to 2 spaces? Thanks
> >
>
> According to the help for `increase-left-margin' the variable
> `standard-indent' is used to specify spacing. Setting that to 2
> should fix the issue.
>
> As an aside, are you sure you want two spaces for everything rather
> than just in scala-mode?
I only want it in scala-mode, but I don't really care enough to bother changing
it unless there is a dirt-simple way to do it. Thanks for the help.