Colors in Emacs (Was Re: [Maxima] Font-lock in *maxima* buffer)



--- Jay Belanger <belanger@truman.edu> wrote:
> 
> Andrei Zorine <zoav1@uic.nnov.ru> writes:
> 
> > Hello,
> > I just thought about asking for a small May Day gift from you guys
> > :) I can't make my XEmacs *maxima* buffer display different fonts.
> > (Your gift is a good advice, of course). Here's the part of my 
> > init.el file
> > ...
> > So when I run font-lock-mode only strings get displayed in green,
> > no boldface etc :(
> 
> Hmm.  The mode in the *maxima* buffer is a derived mode from
> comint-mode, and comint-mode does all the font-locking.  So I'm not
> sure why nothing is happening, perhaps the XEmacs comint-mode doesn't
> do any coloring?  I don't know, I'll look into it.

I don't know if this is related or not, but for a while now I haven't
been able to get colors when I run a maxima session like I used to be
able to.  The screenshot in the Maxima Book is what it used to look
like, and the one in the screenshots page is what I've got now.  Am I
missing an option or has something changed?  Here are the possibly
relevant sections of my .emacs file (using GNU Emacs 21.3.1)

;;#############################
;;    Emacs Defined Section
;;#############################
(custom-set-variables
  ;; custom-set-variables was added by Custom -- don't edit or
cut/paste it!
  ;; Your init file should contain only one such instance.
 '(case-fold-search t)
 '(current-language-environment "English")
 '(global-font-lock-mode t nil (font-lock))
 '(show-paren-mode t nil (paren)))
(custom-set-faces
  ;; custom-set-faces was added by Custom -- don't edit or cut/paste
it!
  ;; Your init file should contain only one such instance.
 )

;;#############################
;;          AucTeX
;;#############################

(require 'font-latex)
(require 'tex-site) 

;;#############################
;;    Maxima/EMaxima modes
;;#############################

(setq load-path (cons "/usr/local/share/maxima/5.9.0.1cvs/emacs"
load-path))
(autoload 'maxima-mode "maxima" "Maxima mode" t)
(autoload 'maxima "maxima" "Maxima interaction" t)
(autoload 'maxima "maxima" "Maxima" t)
(setq auto-mode-alist (cons '("\\.max" . maxima-mode) auto-mode-alist))
(autoload 'emaxima-mode "emaxima" "EMaxima" t)
(add-hook 'emaxima-mode-hook 'emaxima-mark-file-as-emaxima)



__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com