From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Faheem Mitha Newsgroups: gmane.emacs.help Subject: Re: Angle brackets matching Date: Mon, 21 Aug 2006 20:16:38 +0000 (UTC) Organization: Duke University, Durham, NC, USA Message-ID: References: NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1156192937 3221 80.91.229.2 (21 Aug 2006 20:42:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 21 Aug 2006 20:42:17 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Aug 21 22:42:14 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GFGae-0002fH-Mt for geh-help-gnu-emacs@m.gmane.org; Mon, 21 Aug 2006 22:41:45 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GFGab-0000Lt-Cz for geh-help-gnu-emacs@m.gmane.org; Mon, 21 Aug 2006 16:41:41 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.gamma.ru!Gamma.RU!newspeer.monmouth.com!guardian.oit.duke.edu!gargoyle.oit.duke.edu!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 35 Original-NNTP-Posting-Host: gandalf.dulci.duhs.duke.edu Original-X-Trace: gargoyle.oit.duke.edu 1156191398 17650 152.16.96.88 (21 Aug 2006 20:16:38 GMT) Original-X-Complaints-To: news@news.duke.edu Original-NNTP-Posting-Date: Mon, 21 Aug 2006 20:16:38 +0000 (UTC) User-Agent: slrn/0.9.8.1 (Debian) Original-Xref: shelby.stanford.edu gnu.emacs.help:141190 Original-To: help-gnu-emacs@gnu.org 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:36814 Archived-At: On Mon, 21 Aug 2006 21:49:03 +0200, Harald Hanche-Olsen wrote: > + Faheem Mitha : > >| Emacs has nice functionality for paren matching. Ie. if I put the >| cursor outside a paren, it highlights both that paren and the matching >| paren. However, it does not do the same for angle brackets. This would >| be very useful, particularly when writing C++ templates. :-) > > These might be useful, at least if you use paren-mode: > > (modify-syntax-entry ?< "(>") > (modify-syntax-entry ?> ")<") Hi, Thanks for replying. This does not seem to do anything, as far as I can see. I have the following lines in my .emacs which involve use of the word paren. '(show-paren-mode t nil (paren)) (custom-set-faces ;; custom-set-faces was added by Custom -- don't edit or cut/paste it! ;; Your init file should contain only one such instance. '(show-paren-match-face ((((class color)) (:foreground "turquoise" :weight bold)))) '(show-paren-mismatch-face ((((class color)) (:foreground "red" :weight bold))))) Do I need to add something else? Faheem.