From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andrei Alexandrescu Newsgroups: gmane.emacs.help Subject: changing visuals of code in emacs Date: Sun, 12 Oct 2008 15:11:44 -0500 Organization: Computer Science & Engineering, U of Washington, Seattle Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1223871507 21153 80.91.229.12 (13 Oct 2008 04:18:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 13 Oct 2008 04:18:27 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Oct 13 06:19:26 2008 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.50) id 1KpEtw-0002LX-Mu for geh-help-gnu-emacs@m.gmane.org; Mon, 13 Oct 2008 06:19:25 +0200 Original-Received: from localhost ([127.0.0.1]:53671 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KpEsr-0007Vc-8A for geh-help-gnu-emacs@m.gmane.org; Mon, 13 Oct 2008 00:18:17 -0400 Original-Newsgroups: gnu.emacs.help Original-Path: news.stanford.edu!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!newspeer.monmouth.com!newsswitch.lcs.mit.edu!micro-heart-of-gold.mit.edu!uw-beaver!news User-Agent: Thunderbird 2.0.0.17 (X11/20080925) X-Nntp-Posting-Host: 216.80.148.146 Original-Lines: 25 Original-Xref: news.stanford.edu gnu.emacs.help:163367 X-Mailman-Approved-At: Mon, 13 Oct 2008 00:18:00 -0400 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:58715 Archived-At: Hello, I'd like to change code visuals for the D programming language as follows. I'd like the construct: Symbol!(balanced_parens) to be visualized as: Symbol«balanced_parens» The chevrons should appear electrically when I type the closing ")". Note that balanced_parens could in turn nested use of "!()", as in A!(B!(C)), and they should all be paired using chevrons. The underlying file should not contain the chevrons, just the ASCII representation using "!(" and ")". I haven't done much elisp programming beyond the common .emacs configuration tricks, so I don't know where to start. A few searches suggested that overlays may be what I'm looking for... any ideas and pointers? Thank you. Andrei