[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: quoting a block of text with ">"
From: |
Teemu Likonen |
Subject: |
Re: quoting a block of text with ">" |
Date: |
Wed, 08 Dec 2010 15:30:24 -0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2.50 (gnu/linux) |
* 2010-09-29 11:59 (-0700), Stever wrote:
> I can't seem to find this function in my version of emacs, but I
> assume there is one. is there any function where I can highlight a
> block of text and put a ">" in front of it.
I'm not sure if you mean this but you can use M-; command to comment a
region. Major modes should define the comment style for the language.
For example, message-mode uses "> " as comment characters. If you want
to change the default then I think this will do:
(set (make-local-variable 'comment-start) "> ")
(set (make-local-variable 'comment-start-skip) ">+[ \t]*")