emacs 21 supports color mode in console as well. To use it, you have to
set font-lock-mode variable. It is a toggle variable.
M-x font-lock-mode


On Wed, 2003-02-12 at 13:30, Sandeep Nanajkar wrote:
> Hi,
>       I have started using emacs -nw (not Xemacs)of late, can some one send a sample 
>of his 
> .emacs ...so that i can configure the color coding (for java,c,C++ - modes)
> 
> Ihave tried the following in my .emacs file but the foreground colors are never 
>rendered....
> 
> ;; Turn on global font-locking
> (global-font-lock-mode t)
> ;; Set default foreground and background colors
> (set-foreground-color "Black")
> (set-background-color "White")
> (set-cursor-color "Black")
> (set-mouse-color "Black")
> (set-border-color "Black")
> (cond ((fboundp 'global-font-lock-mode)
>        ;; Customize face attributes
>        (setq font-lock-face-attributes
>              ;; Symbol-for-Face Foreground Background Bold Italic Underline
>              '((font-lock-comment-face       "DarkOrchid") ;MediumOrchid
>                (font-lock-string-face        "Firebrick") ;IndianRed
>                (font-lock-keyword-face       "Blue")      ;Magenta, MediumBlue
>                (font-lock-variable-name-face "Red")     ;OrangeRed
>                (font-lock-type-face          "Black")
>                (font-lock-reference-face     "greenyellow")    ;LimeGreen
>                (font-lock-doc-string-face    "Goldenrod")
>                ))
>        (copy-face 'bold 'font-lock-function-name-face)
>        ;; 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)))
> 
> 
> Sandeep Nanajkar
> Phone:+91(124)6826097
>       +91 09810350692(cell)
>       +91 (124) 8942629 (residence)
> 
>           ================================================
> To unsubscribe, send email to [EMAIL PROTECTED] with unsubscribe in subject 
>header. Check archives at http://www.mail-archive.com/ilugd%40wpaa.org
> 


Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to