I'm new to using indent, so please forgive my
ignorance of its usage. If this is the wrong place to
post this, please let me know where I should go, but
as the documentation doesn't list anything else...

I'm trying to set up my .indent.pro to my accustomed
style, which is pretty easy, but I have run into one
issue - I can't figure out how to get indent to indent
the first brace '{' after a function - i.e. to produce
the following:

void debug()
    {
    dosomething();
    }

It always wants to move the brace back to the start of
the line as follows:

void debug()
{
dosomething();
}

Below are the options in my ~/.indent.pro file:

-bl -bli4 -bls -bs -c4 -cbi4 -cdb -cdw -nce -ci4 -cli0
-i0 -lp -bap -bbo -nbfda -npcs -nprs -npsl -saf -sai
-saw -nsc -sob -nut -pmt -sbi4 -ss -ts4

I'm executing it via:

$ indent -v *

in my test directory.

Did I miss an option? Or is it just not there to do
what I want?

Thanks,

Ben


_______________________________________________
Bug-indent mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-indent

Reply via email to