help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to enable font lock for functions called by other functions


From: doyoucy
Subject: Re: How to enable font lock for functions called by other functions
Date: Mon, 11 Aug 2008 19:03:57 -0700 (PDT)
User-agent: G2/1.0

> (font-lock-add-keywords
>    nil `(("\\([[:alpha:]_][[:alnum:]_]*\\)("  1 
> font-lock-function-name-face)))


Thanks guys!

I think coloring the inner function name is common practice for many
code navigation tools, the code above works, but it also applys
function name face to the keywords like "if" "while".

I'm wondering why emacs don't have an option to enable it.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]