[mew-int 00955] highlighting (was: few upgrade questions)

Tatsuya Kinoshita tats at example.com
Tue Jul 2 21:17:48 JST 2002


In message [mew-int 00952], on Sun, 30 Jun 2002,
George Kahler <george at example.com> wrote:

> o How do I set my own colours for the various headers and for lines
>   marked by the various Mew marks ?
> 
>   For ex. I would like to have a diff colour for the 'Subject:' and a
>   diff colour for the actual contents of the Subject line.

  1. Copy mew-2.2/mew-theme.el to ~/.mew-theme.el

  2. Put (setq mew-theme-file "~/.mew-theme") in your ~/.mew.el

  3. Edit ~/.mew-theme.el as you like.  For example,

 ...
 '(mew-face-header-subject
   ((((class color) (type tty)) (:bold t))
    (((class color) (background light)) (:foreground "black" :bold t))
    (((class color) (background dark))  (:foreground "white" :bold t))
    (t (:bold t))))
 ...
 '(mew-face-header-important
   ((((class color) (type tty)) (:bold t))
    (((class color) (background light)) (:foreground "#3f3f3f" :bold t))
    (((class color) (background dark))  (:foreground "#c0c0c0" :bold t))
    (t (:bold t))))
 ...

  4. Restart Mew (Q y M-x mew RET)

> o How do I set highlighting on/off for the various headers ?

> Pls go easy, I'm not a Lisp programmer!

The mew-field-spec variable defines the highlighting of headers,
but it's not easy for non-programmer.

Anyway, I give you a sample code:

-- ~/.mew.el -- 
(mew-replace-with mew-field-spec '("^Date:$" t) "^Date:$")
(mew-replace-with mew-field-spec
		  '("^Reply-To:$" t
		    mew-face-header-important mew-face-header-to)
		  "^Reply-To:$")
---- 

-- ~/.mew-theme.el -- 
 ...
 '(mew-face-header-key
   ((((class color) (type tty)) (nil))
    (((class color) (background light)) (nil))
    (((class color) (background dark))  (nil))
    (t (nil))))
 ...
 '(mew-face-header-marginal
   ((((class color) (type tty)) (nil))
    (((class color) (background light)) (nil))
    (((class color) (background dark))  (nil))
    (t (nil))))
 ...
---- 

If you use the above configuration, `Date:' and marginal headers
are not highlighted, and `Reply-To:' is highlighted.

-- 
Tatsuya Kinoshita



More information about the Mew-int mailing list