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

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

auto 'new-line' in C++ lines too long


From: Rodrigo Canellas
Subject: auto 'new-line' in C++ lines too long
Date: Thu, 22 Jan 2009 17:15:25 -0200
User-agent: KMail/1.10.3 (Linux/2.6.27-9-generic; KDE/4.1.3; i686; ; )

Hi,

I have defined  '(c-max-one-liner-length 80), but I do not know  how to make 
'emacs' insert a 'new-line' char when a C++ line is more than 80 chars long, 
like this:

void
tedious::
g ( ) {
    for ( m = 0, g = 12; m < 12,  g > 0; ++m, --g ) {
        if ( some_very_long_function_name_is_called ( m, g, a_very_big_var_name 
) ) {

I mean, I would like a 'new-line' char to be inserted before the 
'a_very_big_var_name', so the code looks like this:

void
tedious::
g ( ) {
    for ( m = 0, g = 12; m < 12,  g > 0; ++m, --g ) {
        if ( some_very_long_function_name_is_called ( m, g,
                                                      a_very_big_var_name ) ) {



Thanks a lot!


-- 
Rodrigo Canellas
Software Developer
Digital TV Products
+55 21 3147-3000/8675
address@hidden
www.tqtvd.com 
TQTVD Software

-- 
Rodrigo Canellas
Software Developer
Digital TV Products
+55 21 3147-3000/8675
address@hidden
www.tqtvd.com 
TQTVD Software

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.





reply via email to

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