[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: c-mode question, emacs specific
From: |
Pascal Bourguignon |
Subject: |
Re: c-mode question, emacs specific |
Date: |
08 Mar 2004 01:58:49 +0100 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 |
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/