From: Alan Wehmann <wehmann_nospam@fnal.gov>
Subject: Re: Aligning colums
Date: Sat, 22 Jan 2005 22:05:24 -0600 [thread overview]
Message-ID: <v0xhdl823jv.fsf@fsui03.fnal.gov> (raw)
In-Reply-To: csojp9$ccd$1@panix2.panix.com
Look for pretty-column.el. It will do what you want and is easy to
use. I think I got it from gnu.emacs.sources, so chances are you can
find it in the Google group collection of postings.
roy@panix.com (Roy Smith) writes:
> I've got a bunch of text that looks like this:
>
> foo ("arg1", "xxxxxxxxxxxxxx", 1, "xxxx", 2)
> foo ("arg1", "xxxxxxxxx", 1, "xxx", 2)
> foo ("arg1", "xxxxxxxxxxx", 1, "xxxxxxxx", 2)
> foo ("arg1", "xxxxxxxx", 1, "xxxxxx", 2)
> foo ("arg1", "xxxxxxxxxx", 1, "xxxxxxx", 2)
>
> I want to get the arguments lined up so it looks like:
>
> foo ("arg1", "xxxxxxxxxxxxxx", 1, "xxxx", 2)
> foo ("arg1", "xxxxxxxxx", 1, "xxx", 2)
> foo ("arg1", "xxxxxxxxxxx", 1, "xxxxxxxx", 2)
> foo ("arg1", "xxxxxxxx", 1, "xxxxxx", 2)
> foo ("arg1", "xxxxxxxxxx", 1, "xxxxxxx", 2)
>
> What's the best way to do that? I suspect M-X align is what I want, I
> can't make heads or tails out of the on-line help.
>
> Note, the above text looks like C code, but I seem to run into things
> like this is various languages, not just C, so I'm looking for a
> general solution.
>
>
>
--
Alan Wehmann
wehmann_nospam@fnal.gov
next prev parent reply other threads:[~2005-01-23 4:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-20 15:46 Aligning colums Roy Smith
2005-01-20 20:16 ` Stefan Reichör
2005-01-23 4:05 ` Alan Wehmann [this message]
2005-01-24 23:57 ` Peter Heslin
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=v0xhdl823jv.fsf@fsui03.fnal.gov \
--to=wehmann_nospam@fnal.gov \
/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.