[Top][All Lists]

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

Re: line numbers

From: Reiner Steib
Subject: Re: line numbers
Date: Wed, 08 Jan 2003 13:12:59 +0100
User-agent: Gnus/5.090011 (Oort Gnus v0.11) Emacs/21.1 (i386-suse-linux)

On Tue, Jan 07 2003, Bruce Korb wrote:

> Because sometimes I want to X-clip a block of text with line numbers
> and email or print it.  In the end, I fire up vi.  Doing this in
> emacs is too non-obvious.

`C-u M-| nl RET' might be your friend (for e-mail).

,----[ C-h k M-| ]
| M-| runs the command shell-command-on-region
|    which is an interactive compiled Lisp function in `simple'.
| (shell-command-on-region START END COMMAND &optional OUTPUT-BUFFER
| Execute string COMMAND in inferior shell with region as input.
| Normally display output (if any) in temp buffer `*Shell Command Output*';
| Prefix arg means replace the region with it.  Return the exit code of
| COMMAND. [...]

Bye, Reiner.
      (o o)
---ooO-(_)-Ooo--- PGP key available via WWW

reply via email to

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