由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - how to display color for java or c mode in xemacs
相关主题
a low_hand_question about emacs.关于ssh的问题
xemacs problemXEmacs C++-font-lock custumizing question
One question on Solaris Emacsxemacs:Package-get entries not PGP signed,c(y/n)?
emacs问题求教----有关C程序格式emacs中有什么键可以完成象vi中命令模式下的%的操作?
How to see line number in Emacswhat's wrong with my CXterm5.0?
EMACS 求教为什么从家里连到学校的机子上工作这么慢? (转载)
XEmacs Shell 问题[转载] emacs problem
[转载] how to select a word in emacs/xemacs?unix/dos/mac mode in emacs
相关话题的讨论汇总
话题: xemacs话题: color话题: font话题: lock话题: mode
进入Unix版参与讨论
1 (共1页)
r*****s
发帖数: 11
1
thanks
M******t
发帖数: 309
2
need a .emacs file bah

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

【在 M******t 的大作中提到】
: need a .emacs file bah
M******t
发帖数: 309
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 ?
r*****s
发帖数: 11
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)))

M******t
发帖数: 309
6
it works for me, put it into your user directory. name it .emacs

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

【在 M******t 的大作中提到】
: it works for me, put it into your user directory. name it .emacs
M******t
发帖数: 309
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
r*****s
发帖数: 11
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

M******t
发帖数: 309
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

w**w
发帖数: 5391
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

p*a
发帖数: 592
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
: .

1 (共1页)
进入Unix版参与讨论
相关主题
unix/dos/mac mode in emacsHow to see line number in Emacs
how to change the font size of EmacsEMACS 求教
how to change highlighting colors in vim?XEmacs Shell 问题
Re: Vim on win32: How to change bg color ??[转载] how to select a word in emacs/xemacs?
a low_hand_question about emacs.关于ssh的问题
xemacs problemXEmacs C++-font-lock custumizing question
One question on Solaris Emacsxemacs:Package-get entries not PGP signed,c(y/n)?
emacs问题求教----有关C程序格式emacs中有什么键可以完成象vi中命令模式下的%的操作?
相关话题的讨论汇总
话题: xemacs话题: color话题: font话题: lock话题: mode