<<< Date Index >>>     <<< Thread Index >>>

Re: xemacs, color, mail headers....



On Fri, Nov 21 2003 at 06:23:43AM BRST, Matt Price <matt.price@xxxxxxxxxxx> 
wrote:
> On Fri, Nov 21, 2003 at 12:25:09AM -0500, Matt Price wrote:
> 
> > --> meanwhile...  I'm wondering how i can get my old highlighting back.  
> > Using
> > emacs, I had lovely red highlighting for lines starting with >; now
> > all of that is gone.  My first thought is to ifnd out where the
> > font-face definitions for mail-mode were stored in gnu-emacs, and copy
> > them someohow, or trnaslate them somehow, to my xemacs situation.  But
> > I don't have any idea how to do that.  Anyone use xemacs in mutt, and
> > have success with syntax highlighting in mail mode?  
> 
> well, still experimenting here, but need to go to bed!  I've posted my
> .xemacs directory at http://www.derailleur.org/xemacs -- thought it
> was a bit much to send everyone all those files!
> 
> basically:
> 
> -- colors seem to work perfectly well when xemacs is run without the
> -nw switch, that is, in its own "frame".

        If I understood your problem correctly, it's just that xemacs'
default colours don't work well in console ("-nw"). Most of them simply
can't be displayed. I remapped many of my colours, with "M-x
customize-groups RET faces RET". Here's what I have:

(custom-set-faces
 '(default ((t (:background "black" :foreground "white"))) t)
 '(paren-face-match ((((class color)) (:background "brightcyan"))))
 '(cperl-nonoverridable-face ((((class color) (background light)) nil)))
 '(cperl-array-face ((((class color) (background dark)) (:foreground "yellow" 
:bold t))))
 '(paren-face-mismatch ((((class color)) (:background "red"))))
 '(font-lock-string-face ((nil (:foreground "cyan" :bold t))))
 '(flyspell-duplicate-face ((((class color)) (:foreground "red" :bold t 
:underline nil))))
 '(region ((((class color) (background light)) nil)))
 '(cperl-hash-face ((((class color) (background dark)) (:foreground "green"))))
 '(font-lock-preprocessor-face ((((class color) (background dark)) (:foreground 
"cyan" :bold t))))
 '(font-lock-variable-name-face ((nil (:foreground "cyan"))))
 '(flyspell-incorrect-face ((((class color)) (:foreground "red" :bold t 
:underline nil))))
 '(font-lock-warning-face ((((class color) (background dark)) (:foreground 
"brightred" :bold t))))
 '(font-lock-type-face ((((class color) (background dark)) (:foreground 
"green"))))
 '(font-lock-comment-face ((((class color) (background dark)) (:foreground 
"red" :bold t))))
 '(font-lock-function-name-face ((((class color) (background light)) 
(:foreground "darkcyan"))))
 '(makefile-space-face ((((class color)) (:background "brightred")))))

        You could try copying this to your ~/.xemacs/custom.el (carefull not
to override anything already defined there that you want kept).

> xemacs knows it's in a color terminal, and can display colors, for
> instance, when I use the M-x customize functions to create the file at
> http://www.derailleur.org/xemacs/custom.el .  But many of my favorite
> functions are missing -- for instance, syntax highlighting *anywhere*.

        What do you mean by that?





                rbp
-- 
 Rodrigo Bernardo Pimentel                         <rbp@xxxxxxxxxxxx>
 http://isnomore.net                          GPG KeyId: <0x0DB14978>

Computer games don't affect kids. I mean, if Pac-Man affected us as kids,
we'd all be running around in darkened rooms, munching magic pills
and listening to repetitive electronic music.