[TriLUG] emacs question

Andrew Ball anball at gmail.com
Wed May 30 07:17:24 EDT 2007


Good morning.

Does anyone know how I can get emacs to not insert extra spaces before
opening curly braces that start on the line after the if, for, etc.
statement that
they go with?

That is, I get

        if (foo)
            {
                /* do something */
            }

when I really want

        if (foo)
        {
            /* do something */
        }

This is in C mode.

It looks like there may be something in c-offsets-alist, to change, but I'm
a bit lost.  Any
hints would be appreciated.

Thanks for your help!
Andrew

-- 
=======================
Andrew D. Ball
勃安足


More information about the TriLUG mailing list