From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Teemu Likonen Newsgroups: gmane.emacs.help Subject: Re: quoting a block of text with ">" Date: Thu, 30 Sep 2010 06:06:37 +0300 Organization: A noiseless patient Spider Message-ID: <87r5gchqv6.fsf@mithlond.arda> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1291870244 12825 80.91.229.12 (9 Dec 2010 04:50:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 9 Dec 2010 04:50:44 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 09 05:50:40 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PQYSl-0002Ip-Et for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 05:50:39 +0100 Original-Received: from localhost ([127.0.0.1]:35678 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQYSk-0005g9-St for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 23:50:38 -0500 Original-Path: usenet.stanford.edu!news.glorb.com!news2.glorb.com!feeder.erje.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 13 Injection-Date: Thu, 30 Sep 2010 03:06:38 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="TcTTtsh3Iz4M1vNcTNIcFQ"; logging-data="9815"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18fD9Ejs+CpCgtnIsK1H5+yspWxjoJQxa0=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2.50 (gnu/linux) Cancel-Lock: sha1:uJsBz2QBHR/fR4CMR8cR8x8P2Jo= sha1:hzwmXMGuAnGJB3RlJxuRxSnYR7Q= Original-Xref: usenet.stanford.edu gnu.emacs.help:181561 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:76682 Archived-At: * 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]*")