From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ken Goldman Newsgroups: gmane.emacs.help Subject: Re: customize c++ syntax highlighting Date: Fri, 02 Mar 2007 15:30:59 -0500 Message-ID: <45e9d93f$1@news.greennet.net> References: <1172766932.595899.280580@p10g2000cwp.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1172868075 10314 80.91.229.12 (2 Mar 2007 20:41:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 2 Mar 2007 20:41:15 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 02 21:41:08 2007 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 1HNEYu-0007Do-Js for geh-help-gnu-emacs@m.gmane.org; Fri, 02 Mar 2007 21:41:08 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HNEYu-0006Pd-3Z for geh-help-gnu-emacs@m.gmane.org; Fri, 02 Mar 2007 15:41:08 -0500 User-Agent: Mozilla/5.0 (X11; U; AIX 000C89FF4C00; en-US; rv:1.7) Gecko/20040617 X-Accept-Language: en-us, en Original-Newsgroups: gnu.emacs.help In-Reply-To: <1172766932.595899.280580@p10g2000cwp.googlegroups.com> Original-NNTP-Posting-Host: 192.91.197.52 X-Original-NNTP-Posting-Host: 192.91.197.52 Original-X-Trace: 3 Mar 2007 15:23:27 -0500, 192.91.197.52 Original-Lines: 19 Original-Path: shelby.stanford.edu!newshub.stanford.edu!postnews.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!feedme.ziplink.net!news.greennet.net!192.91.197.52 Original-Xref: shelby.stanford.edu gnu.emacs.help:146000 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:41604 Archived-At: ctypes will parse your header files, find typedef's, and understand that it's a program specific type. I found that I had to play with its customization a bit because it was slow at its most automated setting. sugi.furuta@gmail.com wrote: > Just wondered if anyone could tell me how in C++ major mode I can make > emacs treat a specific word as being syntactically equivalent to a > default C++ type. > > For example, > > If I type "int foo();" "int" is coloured green and "foo" is coloured > blue, which is nice. > > But if I type "mytype foo();" I don't get any colours at all. I'd like > mytype to be treated as if it were a default C++ type.