From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Peter Boettcher Newsgroups: gmane.emacs.help Subject: Re: custom C highlighting / syntax coloring Date: Wed, 19 Mar 2003 09:58:03 -0500 Organization: MIT Lincoln Laboratory Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1048086267 23564 80.91.224.249 (19 Mar 2003 15:04:27 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 19 Mar 2003 15:04:27 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 19 16:04:26 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18vf64-00061z-00 for ; Wed, 19 Mar 2003 16:03:16 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18vf3Q-0001ey-05 for gnu-help-gnu-emacs@m.gmane.org; Wed, 19 Mar 2003 10:00:32 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!llslave.llan.ll.mit.edu!53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 25 User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i686-pc-linux-gnu) Cancel-Lock: sha1:j0Xe4+C4KirjTWnMO01I4NyQaM0= Original-NNTP-Posting-Host: 155.34.163.111 Original-X-Complaints-To: news@ll.mit.edu Original-X-Trace: llslave.llan.ll.mit.edu 1048085883 155.34.163.111 (Wed, 19 Mar 2003 09:58:03 EST) Original-NNTP-Posting-Date: Wed, 19 Mar 2003 09:58:03 EST Original-Xref: shelby.stanford.edu gnu.emacs.help:111215 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:7715 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:7715 [CC to author] Chris Pickett writes: > Hi, > > I like how CC Mode (for a .c or .h file) automatically recognizes > words ending in '_t' as being types and highlights them and the > corresponding declarations. However, I am working on a large project > with several other types. I need help customizing emacs to recognize > these other patterns as types. I find it makes understanding the > source, which I did not write, a lot easier. Try the package "ctypes.el". It does exactly what you ask. I found a copy here: http://www.emacswiki.org/elisp/ctypes.el -- Peter Boettcher MIT Lincoln Laboratory boettcher@ll.mit.edu (781) 981-5275