r*****s 发帖数: 11 | |
M******t 发帖数: 309 | 2 need a .emacs file bah
【在 r*****s 的大作中提到】![](/moin_static193/solenoid/img/up.png) : thanks
|
r*****s 发帖数: 11 | 3 what should I put in the file ?
【在 M******t 的大作中提到】![](/moin_static193/solenoid/img/up.png) : 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 的大作中提到】![](/moin_static193/solenoid/img/up.png) : what should I put in the file ?
|
r*****s 发帖数: 11 | 5 still no color :(
【在 M******t 的大作中提到】![](/moin_static193/solenoid/img/up.png) : 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 的大作中提到】![](/moin_static193/solenoid/img/up.png) : still no color :(
|
r*****s 发帖数: 11 | 7 yes, that's exactly what i did
【在 M******t 的大作中提到】![](/moin_static193/solenoid/img/up.png) : 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 的大作中提到】![](/moin_static193/solenoid/img/up.png) : 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 的大作中提到】![](/moin_static193/solenoid/img/up.png) : 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 的大作中提到】![](/moin_static193/solenoid/img/up.png) : 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 的大作中提到】![](/moin_static193/solenoid/img/up.png) : 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 的大作中提到】![](/moin_static193/solenoid/img/up.png) : in emacs (don't know xemacs), there is options in the menus you can set : highlight : .
|