[Top][All Lists]

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

cc-mode indent, exception for long lines

From: Matt Armstrong
Subject: cc-mode indent, exception for long lines
Date: Tue, 15 Oct 2002 15:09:34 -0600
User-agent: slrn/ (Linux)

I like to keep my C code lines to 80 columns, for easier

But, sometimes I have a long string constant or identifier, and
cc-mode's indentation isn't optimal.  E.g.

    if (ReallyLongFunctionName(AnotherReallyLongFunctionName("a really long 
string constant") 

I haven't been able to get cc-mode to help me much here.  It'd be great
if it had a way to sense that the result of an indentation will go
beyond N columns and go into an alternate mode that results in something
like this:

    if (ReallyLongFunctionName(
                    "a really long string constant") 

(the above indentation is the "vim" editor's default indentation -- the
first line after a paren is indented 8 spaces, all subsequent lines 8+4

Any tips?


reply via email to

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