From: Rodrigo Canellas <rodrigo.canellas@tqtvd.com>
To: help-gnu-emacs@gnu.org
Subject: auto 'new-line' in C++ lines too long
Date: Thu, 22 Jan 2009 17:15:25 -0200 [thread overview]
Message-ID: <200901221715.25767.rodrigo.canellas@tqtvd.com> (raw)
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
rodrigo.canellas@tqtvd.com
www.tqtvd.com
TQTVD Software
--
Rodrigo Canellas
Software Developer
Digital TV Products
+55 21 3147-3000/8675
rodrigo.canellas@tqtvd.com
www.tqtvd.com
TQTVD Software
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
reply other threads:[~2009-01-22 19:15 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200901221715.25767.rodrigo.canellas@tqtvd.com \
--to=rodrigo.canellas@tqtvd.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.