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

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

Re: Modifying Indentation Style


From: August
Subject: Re: Modifying Indentation Style
Date: Sat, 19 Feb 2005 01:41:30 +0100

On fre, 2005-02-18 at 15:01 -0800, Ryan Bowman wrote:
> I want to change the c indentation style (regarding
> how braces are indented) from
> 
> if ()
>   {
>   }
> 
> to
> 
> if ()
> {
> }
> 
> I thought that the following would work but it doesn't
> seem to be having any effect.
> 
> (c-add-style "ryan" 
>              '("gnu" 
>                (c-offset-list . ((block-open . -2))))
> 
> What is the correct way to accomplish this?

Add the pair `(substatement-open . 0)' to `c-offsets-alist' (you can
e.g. type `C-h v c-offset-alist' and choose `customize').

-- 
August




reply via email to

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