由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - XEmacs C++-font-lock custumizing question
相关主题
xemacs problemASK AGAIN!!!Re: How to open/edit a huge text file
how to display color for java or c mode in xemacs请教How to adjust man output?
How to debug C program in UnixHow to see line number in Emacs
如何在perl中运行c-shell file?How to save XEmacs options?
一个奇怪的现象!how to install speedbar on xemacs?
a low_hand_question about emacs.能在xemacs中把Del键设成删除光标后的字符的功能键吗
xemacs 里如何设置让它显示行号?some wt
Re: xemacs ?EMACS 求教
相关话题的讨论汇总
话题: font话题: xemacs话题: lock话题: c++话题: question
进入Unix版参与讨论
1 (共1页)
O*D
发帖数: 17
1
Hi all,
I have a question about XEmacs lisp extension.
In C++-mode, font lock recognizes int, float etc as types and highlight
them using font-lock-type-face. Yet it does not font lock on extended types
for instance time_t and iterator.
Emacs fontifies these names by default and one can append whatever he wants
to the list c++-font-lock-extra-types. And if your company decided all the
classes in its application code would conform to a name convention class
TC***,
you can add a regexp to the list
t****a
发帖数: 1
2
Hi, I have a quite close question.
Suppose the int is by default shown in red color,
can I change it to green, for example? how?
Thanks a lot.

This
XEmacs.

【在 O*D 的大作中提到】
: Hi all,
: I have a question about XEmacs lisp extension.
: In C++-mode, font lock recognizes int, float etc as types and highlight
: them using font-lock-type-face. Yet it does not font lock on extended types
: for instance time_t and iterator.
: Emacs fontifies these names by default and one can append whatever he wants
: to the list c++-font-lock-extra-types. And if your company decided all the
: classes in its application code would conform to a name convention class
: TC***,
: you can add a regexp to the list

O*D
发帖数: 17
3
you can customize font lock faces. change the highlight color, font of type
names is trivial in Xemacs.
If you want to do more than that, say create your own faces, I do not know a
easy way which led to my first question.
Anyhow, I am the ROOT of my machine, so I did the nasty thing of editing
fontlock.el in Xemacs lisp package. By that I solve some of my problem, but
still kinda hard to customize in init.el or .emacs.

types
wants

【在 t****a 的大作中提到】
: Hi, I have a quite close question.
: Suppose the int is by default shown in red color,
: can I change it to green, for example? how?
: Thanks a lot.
:
: This
: XEmacs.

1 (共1页)
进入Unix版参与讨论
相关主题
EMACS 求教一个奇怪的现象!
a question about regular expressiona low_hand_question about emacs.
XEmacs Shell 问题xemacs 里如何设置让它显示行号?
大侠,请问如何在VI和XEMACS中对齐程序?Re: xemacs ?
xemacs problemASK AGAIN!!!Re: How to open/edit a huge text file
how to display color for java or c mode in xemacs请教How to adjust man output?
How to debug C program in UnixHow to see line number in Emacs
如何在perl中运行c-shell file?How to save XEmacs options?
相关话题的讨论汇总
话题: font话题: xemacs话题: lock话题: c++话题: question