help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Temporarily changing number of spaces in indentation


From: Vineet Naik
Subject: Re: Temporarily changing number of spaces in indentation
Date: Thu, 5 Apr 2012 13:07:01 +0530

On Wed, Apr 4, 2012 at 6:14 PM, Xah Lee <xahlee@gmail.com> wrote:
> On Apr 4, 12:45 am, Vineet Naik <naik...@gmail.com> wrote:
>> Hello,
>>
>> I usually use 4 spaces (indent-tabs-mode set to nil) to indent php code.
>>
>> I have the following line in .emacs file which I guess sets this behaviour
>>
>> (setq c-basic-offset 4)
>>
>> I am now temporarily working on some code which uses 8 spaces instead of 4.
>>
>> So I tried evaluating (setq c-basic-offset 8) in scratch buffer. I see
>> 8 in the mini buffer but it still indents 4 spaces.
>
> you probably want to eval that in your current buffer. Not scratch.
> Because, am guessing it's a buffer-local var.

It worked. Thanks.

Vineet



reply via email to

[Prev in Thread] Current Thread [Next in Thread]