unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "gamename" <namesagame-usenet@yahoo.com>
Subject: setting continuation chars
Date: 28 Jun 2006 12:20:27 -0700	[thread overview]
Message-ID: <1151522427.433692.320650@b68g2000cwa.googlegroups.com> (raw)

Hi,

I have a tcl file that uses procedures with lots of parms.
Consequently, I often have to span multiple lines.
Example

blit -a <some parm> -b <some parm> -c <some parm> ...

To span multiple lines, you need to use the backslash ("\") as a
continuation.
Example:

blit \
-a <some parm> \
-b <some parm> \
-c <some parm>

But, I prefer a format where all the backslashes are placed in a
specific column.  It would then look more like this:

blit                  \
-a <some parm>        \
-b <some parm>        \
-c <some parm>

...which makes the continuations obvious.

Is there any way to do one of the following in emacs:

1) automagically put the continuation at a specific column number
OR
2) use some sort of command (regex?) to insert the needed spaces up to
a certain column and then put in a backslash?


TIA,
-T

             reply	other threads:[~2006-06-28 19:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-28 19:20 gamename [this message]
2006-06-29  7:38 ` setting continuation chars Mathias Dahl
2006-06-29 11:24   ` gamename
  -- strict thread matches above, loose matches on Subject: below --
2006-06-29 20:35 Jay Bingham
     [not found] <mailman.3529.1151613525.9609.help-gnu-emacs@gnu.org>
2006-07-08  8:47 ` gamename

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1151522427.433692.320650@b68g2000cwa.googlegroups.com \
    --to=namesagame-usenet@yahoo.com \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).