From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Pascal Bourguignon Newsgroups: gmane.emacs.help Subject: Re: c-mode question, emacs specific Date: 08 Mar 2004 01:58:49 +0100 Organization: [posted via Easynet Spain] Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87znas5f3q.fsf@thalassa.informatimago.com> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1078988774 6944 80.91.224.253 (11 Mar 2004 07:06:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 11 Mar 2004 07:06:14 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 11 08:06:05 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1B1KGa-0005M8-00 for ; Thu, 11 Mar 2004 08:06:05 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B1KGR-0003b0-SL for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Mar 2004 02:05:55 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!news-lond.gip.net!news.gsl.net!gip.net!easynet-monga!easynet.net!easynet-post2!not-for-mail Original-Followup-To: gnu.emacs.help Original-Newsgroups: gnu.emacs.help,comp.lang.c User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Original-Lines: 25 Original-NNTP-Posting-Host: 62.93.174.79 Original-X-Trace: DXC=B?4J1ka1JfH41m9\B0?bOF_51]<;N?4WAbBd4DjF1d]A Original-Xref: shelby.stanford.edu gnu.emacs.help:121521 comp.lang.c:645743 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:17512 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:17512 Anonymous-Remailer@See.Comment.Header (C-turtle) writes: > typedef int INT; > #define INT int > > and I want it to highlight just as int and treat it as int inside > emacs. > How can I do it??? Please, explain a little as you put your > solution. Customize this variable: font-lock-extra-types For example, I have: (custom-set-variables ;; ... '(font-lock-extra-types (quote ("FILE" "\\sw+_t" "[A-Z][A-Za-z]+[A-Z][A-Za-z0-9]+" "bool" "INT8" "INT16" "INT32" "CARD8" "CARD16" "CARD32" "SignT" "CHAR" "UNICODE" "DECIMAL" "ADDRESS" "CSTRING255" "CSTRING63" "CSTRING31" "BOOLEAN")) t) ;; ... ) -- __Pascal_Bourguignon__ http://www.informatimago.com/ There is no worse tyranny than to force a man to pay for what he doesn't want merely because you think it would be good for him.--Robert Heinlein http://www.theadvocates.org/