emacs-devel
[Top][All Lists]
Advanced

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

(efaq)Inserting > at the beginning of each line (was: faq.texi)


From: Reiner Steib
Subject: (efaq)Inserting > at the beginning of each line (was: faq.texi)
Date: Tue, 07 Feb 2006 21:31:45 +0100
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

On Tue, Feb 07 2006, Romain Francoise wrote:

> (info "(efaq)Inserting > at the beginning of each line")
>
> Though it could be made more general.

,----[ (info "(efaq)Inserting > at the beginning of each line") ]
|    If you are trying to prefix a yanked mail message with `>', you
| might want to set the variable `mail-yank-prefix'.  Better yet, use the
| Supercite package (*note Supercite::), which provides flexible citation
| for yanked mail and news messages; it is included in Emacs since
| version 19.20.  *Note Changing the included text prefix::, for
| additional information.
`----

In `message-mode' you can simply use `M-;' (`comment-region' [1]).  In
`mail-mode' you need to specify the comment syntax.  Maybe it should
be added to `mail-mode' as well.

Bye, Reiner.

[1] From `message.el':

  (when message-yank-prefix
    (set (make-local-variable 'comment-start) message-yank-prefix)
    (set (make-local-variable 'comment-start-skip)
         (concat "^" (regexp-quote message-yank-prefix) "[ \t]*")))
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/





reply via email to

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