all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ken Goldman <kgold@watson.ibm.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Quick insert of characters into a column?
Date: Tue, 30 Jun 2009 13:57:49 -0400	[thread overview]
Message-ID: <4a4b9c02$1@news.greennet.net> (raw)
In-Reply-To: <7e588b3f-b88f-4ca5-abb9-f43c9348792c@c19g2000prh.googlegroups.com>

Search the docs for 'rectangle'

Specifically

C-x r t runs the command string-rectangle
    which is an interactive compiled Lisp function in `rect'.
(string-rectangle START END STRING)

Replace rectangle contents with STRING on each line.
The length of STRING need not be the same as the rectangle width.

Chad wrote:
> Hi,
> 
> I'm using emacs to edit a latex file to create a table with many rows,
> say 20.  I need to insert & to separate the columns, so I need a
> column of 20 ampersands.
> 
> What is the quickest way to do this?  I'd like to highlight a region
> (column) and then tell emacs to insert the ampersand into that region,
> but I can't figure out how to do this.
> 
> Thanks for your help!
> 
> Chad


      parent reply	other threads:[~2009-06-30 17:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-23 23:38 Quick insert of characters into a column? Chad
2009-06-24  3:10 ` Joost Kremers
2009-06-24  6:55 ` harven
2009-06-24 16:46   ` Chad
2009-06-30 17:57 ` Ken Goldman [this message]

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='4a4b9c02$1@news.greennet.net' \
    --to=kgold@watson.ibm.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.