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

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

Re: Indentation


From: Colin S. Miller
Subject: Re: Indentation
Date: Tue, 04 Jul 2006 00:00:08 +0100
User-agent: Thunderbird 1.5.0.2 (X11/20060516)

Ronny Mandal wrote:
Hi.

Does anyone know how I get rid of the annoying indentation after e.g. if-statements (in multiple languages), i.e. (C-example):

if(condition)
   {    /*Why?!*/
   }


Thanks.

-RM
That's the default indent style, its used for all GNU project code.

(c-add-style "myStyle" '("bsd"
                        (c-basic-offset . 4)))

(add-hook 'c-mode-common-hook '(lambda ()
                                 (c-set-style "myStyle")))


should change it to a more-normal style.

NB,
This code is for XEmacs, it should work on GNU Emacs, but I haven't tested it.


--
Replace the obvious in my email address with the first three letters of the 
hostname to reply.


reply via email to

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