Redian新闻
>
how to display color for java or c mode in xemacs
avatar
M*t
2
need a .emacs file bah

【在 r*****s 的大作中提到】
: thanks
avatar
r*s
3
what should I put in the file ?

【在 M******t 的大作中提到】
: need a .emacs file bah
avatar
M*t
4
try this, copy the stuff after ____ and before ********
_________________________________________________________
;; Turn on font-lock
(cond ((fboundp 'global-font-lock-mode)
;; Load the font-lock package.
(require 'font-lock)
;; Maximum colors
(setq font-lock-maximum-decoration t)
;; Turn on font-lock in all modes that support it
(global-font-lock-mode t)))
(setq query-replace-highlight t) ;highlight during query
(setq search-highlight t)

【在 r*****s 的大作中提到】
: what should I put in the file ?
avatar
r*s
5
still no color :(

【在 M******t 的大作中提到】
: try this, copy the stuff after ____ and before ********
: _________________________________________________________
: ;; Turn on font-lock
: (cond ((fboundp 'global-font-lock-mode)
: ;; Load the font-lock package.
: (require 'font-lock)
: ;; Maximum colors
: (setq font-lock-maximum-decoration t)
: ;; Turn on font-lock in all modes that support it
: (global-font-lock-mode t)))

avatar
M*t
6
it works for me, put it into your user directory. name it .emacs

【在 r*****s 的大作中提到】
: still no color :(
avatar
r*s
7
yes, that's exactly what i did

【在 M******t 的大作中提到】
: it works for me, put it into your user directory. name it .emacs
avatar
M*t
8
did u restart your emacs? if you did, i don't know why leh.
//blush

【在 r*****s 的大作中提到】
: yes, that's exactly what i did
avatar
r*s
9
I even logout and login, but still no color :(
Thanks anyway, i will try later

【在 M******t 的大作中提到】
: did u restart your emacs? if you did, i don't know why leh.
: //blush

avatar
M*t
10
en,the last time, did u save the document as *.c ?
because it does not load the color code before you save it as c file.

【在 r*****s 的大作中提到】
: I even logout and login, but still no color :(
: Thanks anyway, i will try later

avatar
w*w
11
in emacs (don't know xemacs), there is options in the menus you can set
highlight
.

【在 r*****s 的大作中提到】
: I even logout and login, but still no color :(
: Thanks anyway, i will try later

avatar
p*a
12
since u're using xemacs, it's easy.
goto menu 'Options -> Syntax Highlighting -> Color',
you're all set. If you want it to be automatic,
you can click 'Save Options' under that menu too.

【在 w**w 的大作中提到】
: in emacs (don't know xemacs), there is options in the menus you can set
: highlight
: .

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。